3 namespace Drupal\Component\Plugin;
6 * Plugin interface for providing some metadata inspection.
8 * This interface provides some simple tools for code receiving a plugin to
9 * interact with the plugin system.
13 interface PluginInspectionInterface {
16 * Gets the plugin_id of the plugin instance.
19 * The plugin_id of the plugin instance.
21 public function getPluginId();
24 * Gets the definition of the plugin implementation.
27 * The plugin definition, as returned by the discovery object used by the
30 public function getPluginDefinition();