You are here

interface PluginAwareInterface in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/Plugin/PluginAwareInterface.php \Drupal\Component\Plugin\PluginAwareInterface

Provides an interface for objects that depend on a plugin.

Hierarchy

Expanded class hierarchy of PluginAwareInterface

All classes that implement PluginAwareInterface

6 files declare their use of PluginAwareInterface
PluginFormBase.php in core/lib/Drupal/Core/Plugin/PluginFormBase.php
PluginFormFactory.php in core/lib/Drupal/Core/Plugin/PluginFormFactory.php
PluginFormFactoryTest.php in core/tests/Drupal/Tests/Core/Plugin/PluginFormFactoryTest.php
WorkflowTypeConfigureFormBase.php in core/modules/workflows/src/Plugin/WorkflowTypeConfigureFormBase.php
WorkflowTypeStateFormBase.php in core/modules/workflows/src/Plugin/WorkflowTypeStateFormBase.php

... See full list

File

core/lib/Drupal/Component/Plugin/PluginAwareInterface.php, line 8

Namespace

Drupal\Component\Plugin
View source
interface PluginAwareInterface {

  /**
   * Sets the plugin for this object.
   *
   * @param \Drupal\Component\Plugin\PluginInspectionInterface $plugin
   *   The plugin.
   */
  public function setPlugin(PluginInspectionInterface $plugin);

}

Members

Namesort descending Modifiers Type Description Overrides
PluginAwareInterface::setPlugin public function Sets the plugin for this object. 4