You are here

interface PluginDefinitionInterface in Plug 7

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.

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.