interface PluginDefinitionInterface in Service Container 7
Same name and namespace in other branches
- 7.2 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
- 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.
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\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. |