You are here

public function CToolsPluginDiscovery::getDefinitions in Service Container 7.2

Same name and namespace in other branches
  1. 7 src/Plugin/Discovery/CToolsPluginDiscovery.php \Drupal\service_container\Plugin\Discovery\CToolsPluginDiscovery::getDefinitions()

Gets the definition of all plugins for this type.

Return value

mixed[] An array of plugin definitions (empty array if no definitions were found). Keys are plugin IDs.

Overrides DiscoveryInterface::getDefinitions

File

src/Plugin/Discovery/CToolsPluginDiscovery.php, line 49
Contains \Drupal\service_container\Plugin\Discovery\CToolsPluginDiscovery

Class

CToolsPluginDiscovery
A discovery mechanism that uses ctools plugins for Drupal 7 compatibility.

Namespace

Drupal\service_container\Plugin\Discovery

Code

public function getDefinitions() {
  ctools_include('plugins');
  return ctools_get_plugins($this->pluginOwner, $this->pluginType);
}