1. 8.5.x core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php PluginInspectionInterface
  2. 8.0.x core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php PluginInspectionInterface
  3. 8.1.x core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php PluginInspectionInterface
  4. 8.2.x core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php PluginInspectionInterface
  5. 8.3.x core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php PluginInspectionInterface
  6. 8.4.x core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php PluginInspectionInterface
  7. 8.6.x core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php PluginInspectionInterface

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

Expanded class hierarchy of PluginInspectionInterface

All classes that implement PluginInspectionInterface

Related topics

38 files declare their use of PluginInspectionInterface
ActionInterface.php in core/lib/Drupal/Core/Action/ActionInterface.php
BlockPluginInterface.php in core/lib/Drupal/Core/Block/BlockPluginInterface.php
CKEditorPluginInterface.php in core/modules/ckeditor/src/CKEditorPluginInterface.php
ConditionInterface.php in core/lib/Drupal/Core/Condition/ConditionInterface.php
EditorPluginInterface.php in core/modules/editor/src/Plugin/EditorPluginInterface.php

... See full list

File

core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php, line 13

Namespace

Drupal\Component\Plugin
View 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

Contains filters are case sensitive
Namesort descending Modifiers Type Description Overrides
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation.
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance.