PluginAwareInterface.php

Same filename and directory in other branches
  1. 9 core/lib/Drupal/Component/Plugin/PluginAwareInterface.php
  2. 8.9.x core/lib/Drupal/Component/Plugin/PluginAwareInterface.php
  3. 10 core/lib/Drupal/Component/Plugin/PluginAwareInterface.php

Namespace

Drupal\Component\Plugin

File

core/lib/Drupal/Component/Plugin/PluginAwareInterface.php

View source
<?php

namespace Drupal\Component\Plugin;


/**
 * Provides an interface for objects that depend on a plugin.
 */
interface PluginAwareInterface {
    
    /**
     * Sets the plugin for this object.
     *
     * @param \Drupal\Component\Plugin\PluginInspectionInterface $plugin
     *   The plugin.
     */
    public function setPlugin(PluginInspectionInterface $plugin);

}

Interfaces

Title Deprecated Summary
PluginAwareInterface Provides an interface for objects that depend on a plugin.

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