interface PluginDefinitionInterface in Plug 7
Defines a plugin definition.
Object-based plugin definitions MUST implement this interface.
Hierarchy
- interface \Drupal\Component\Plugin\Definition\PluginDefinitionInterface
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\DefinitionView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginDefinitionInterface:: |
public | function | Gets the class. | |
PluginDefinitionInterface:: |
public | function | Sets the class. |