Skip to main content
Home

Main navigation

  • Home
  • Blogs
  • Team
  • Jobs
  • Contact

Right Menu

  • Hire

Call specific Plugin

In Drupal we use the Plugin API to create plugin type functionality. If you want to call specific plugin of type then you can simple use the below snippet 

 $plugin_manager = \Drupal::service('plugin.manager.my_plugin_type');
 $plugin = $plugin_manager->createInstance('my_plugin_type_id');

You call the plugin manager service for your plugin type and then  you can pass the your plugin type id to call the specific plugin.

About us

We are a web development company. We have vast excperience in building web sites in Drupal CMS. We develop simple website to complex system to meet the client requirements.

 

Follow us

  facebook twitter instagram linkedin