interface PluginHierarchyDefinitionInterface in Plugin 8.2
Defines a plugin definition that defines a parent plugin.
Hierarchy
- interface \Drupal\Component\Plugin\Definition\PluginDefinitionInterface
- interface \Drupal\plugin\PluginDefinition\PluginDefinitionInterface
- interface \Drupal\plugin\PluginDefinition\PluginHierarchyDefinitionInterface
- interface \Drupal\plugin\PluginDefinition\PluginDefinitionInterface
Expanded class hierarchy of PluginHierarchyDefinitionInterface
All classes that implement PluginHierarchyDefinitionInterface
2 files declare their use of PluginHierarchyDefinitionInterface
- PluginHierarchyTrait.php in src/
PluginHierarchyTrait.php - PluginHierarchyTraitTest.php in tests/
src/ Unit/ PluginHierarchyTraitTest.php
File
- src/
PluginDefinition/ PluginHierarchyDefinitionInterface.php, line 10
Namespace
Drupal\plugin\PluginDefinitionView source
interface PluginHierarchyDefinitionInterface extends PluginDefinitionInterface {
/**
* Sets the ID of the parent plugin.
*
* @param string $id
* The ID.
*
* @return $this
*/
public function setParentId($id);
/**
* Gets the ID of the parent plugin.
*
* @return string|null
* The ID or NULL if there is no parent.
*/
public function getParentId();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginDefinitionInterface:: |
public | function | Gets the class. | 1 |
PluginDefinitionInterface:: |
public | function | Gets the plugin ID. | 2 |
PluginDefinitionInterface:: |
public | function |
Gets the plugin provider. Overrides PluginDefinitionInterface:: |
2 |
PluginDefinitionInterface:: |
public | function | Gets the unique identifier of the plugin. | 1 |
PluginDefinitionInterface:: |
public | function | Merges another definition into this one, using the other for defaults. | |
PluginDefinitionInterface:: |
public | function | Merges another definition into this one, using the other for overrides. | |
PluginDefinitionInterface:: |
public | function | Sets the class. | 1 |
PluginDefinitionInterface:: |
public | function | Sets the plugin ID. | 2 |
PluginDefinitionInterface:: |
public | function | Sets the plugin provider. | 2 |
PluginHierarchyDefinitionInterface:: |
public | function | Gets the ID of the parent plugin. | 1 |
PluginHierarchyDefinitionInterface:: |
public | function | Sets the ID of the parent plugin. | 1 |