You are here

interface PluginDefinitionInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/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

3 files declare their use of PluginDefinitionInterface
DefaultFactory.php in core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php
Contains \Drupal\Component\Plugin\Factory\DefaultFactory.
DefaultFactoryTest.php in core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php
Contains \Drupal\Tests\Component\Plugin\DefaultFactoryTest.
EntityTypeInterface.php in core/lib/Drupal/Core/Entity/EntityTypeInterface.php
Contains \Drupal\Core\Entity\EntityTypeInterface.

File

core/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. 1
PluginDefinitionInterface::setClass public function Sets the class. 1