interface PluginInspectionInterface

Plugin interface for providing some metadata inspection.

This interface provides some simple tools for code recieving a plugin to interact with the plugin system.

Hierarchy

Expanded class hierarchy of PluginInspectionInterface

All classes that implement PluginInspectionInterface

7 files declare their use of PluginInspectionInterface
CKEditorPluginInterface.php in drupal/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginInterface.php
Contains \Drupal\ckeditor\CKEditorPluginInterface.
EditorPluginInterface.php in drupal/core/modules/editor/lib/Drupal/editor/Plugin/EditorPluginInterface.php
Contains \Drupal\editor\Plugin\EditPluginInterface.
EditPluginInterface.php in drupal/core/modules/edit/lib/Drupal/edit/EditPluginInterface.php
Contains \Drupal\edit\EditPluginInterface.
LayoutInterface.php in drupal/core/modules/layout/lib/Drupal/layout/Plugin/LayoutInterface.php
Definition of Drupal\layout\Plugin\LayoutInterface.
PluginInterface.php in drupal/core/modules/views/lib/Drupal/views/Plugin/views/PluginInterface.php
Definition of Drupal\views\Plugin\PluginInterface.

... See full list

File

drupal/core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php, line 15
Definition of Drupal\Component\Plugin\PluginInspectionInterface.

Namespace

Drupal\Component\Plugin
View source
interface PluginInspectionInterface {

  /**
   * Returns the plugin_id of the plugin instance.
   *
   * @return string
   *   The plugin_id of the plugin instance.
   */
  public function getPluginId();

  /**
   * Returns 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

Namesort descending Modifiers Type Description Overrides
PluginInspectionInterface::getPluginDefinition public function Returns the definition of the plugin implementation. 1
PluginInspectionInterface::getPluginId public function Returns the plugin_id of the plugin instance. 1