interface PluginAwareInterface

Same name in other branches
  1. 9 core/lib/Drupal/Component/Plugin/PluginAwareInterface.php \Drupal\Component\Plugin\PluginAwareInterface
  2. 8.9.x core/lib/Drupal/Component/Plugin/PluginAwareInterface.php \Drupal\Component\Plugin\PluginAwareInterface
  3. 11.x 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

Title Sort descending Modifiers Object type Summary Overrides
PluginAwareInterface::setPlugin public function Sets the plugin for this object. 4

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.