You are here

interface PluginDefinitionInterface in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Component/Plugin/Definition/PluginDefinitionInterface.php \Drupal\Component\Plugin\Definition\PluginDefinitionInterface

Defines a plugin definition.

Object-based plugin definitions MUST implement this interface.

Hierarchy

Expanded class hierarchy of PluginDefinitionInterface

All classes that implement PluginDefinitionInterface

1 file declares its use of PluginDefinitionInterface
DefaultFactory.php in lib/Drupal/Component/Plugin/Factory/DefaultFactory.php
Contains \Drupal\Component\Plugin\Factory\DefaultFactory.
1 string reference to 'PluginDefinitionInterface'
DefaultFactory::getPluginClass in lib/Drupal/Component/Plugin/Factory/DefaultFactory.php
Finds the class relevant for a given plugin.

File

lib/Drupal/Component/Plugin/Definition/PluginDefinitionInterface.php, line 17
Contains \Drupal\Component\Plugin\Definition\PluginDefinitionInterface.

Namespace

Drupal\Component\Plugin\Definition
View source
interface PluginDefinitionInterface {

  /**
   * Sets the class.
   *
   * @param string $class
   *   A fully qualified class name.
   *
   * @return static
   *
   * @throws \InvalidArgumentException
   *   If the class is invalid.
   */
  public function setClass($class);

  /**
   * Gets the class.
   *
   * @return string
   *   A fully qualified class name.
   */
  public function getClass();

}

Members

Namesort descending Modifiers Type Description Overrides
PluginDefinitionInterface::getClass public function Gets the class.
PluginDefinitionInterface::setClass public function Sets the class.