interface PluginInspectionInterface in Plug 7
Plugin interface for providing some metadata inspection.
This interface provides some simple tools for code receiving a plugin to interact with the plugin system.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface
Expanded class hierarchy of PluginInspectionInterface
All classes that implement PluginInspectionInterface
File
- lib/
Drupal/ Component/ Plugin/ PluginInspectionInterface.php, line 17 - Contains \Drupal\Component\Plugin\PluginInspectionInterface.
Namespace
Drupal\Component\PluginView source
interface PluginInspectionInterface {
/**
* Gets the plugin_id of the plugin instance.
*
* @return string
* The plugin_id of the plugin instance.
*/
public function getPluginId();
/**
* Gets the definition of the plugin implementation.
*
* @return array
* The plugin definition, as returned by the discovery object used by the
* plugin manager.
*/
public function getPluginDefinition();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 1 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 1 |