interface PluginLabelDefinitionInterface in Plugin 8.2
Defines a plugin definition that includes a label.
Hierarchy
- interface \Drupal\Component\Plugin\Definition\PluginDefinitionInterface
- interface \Drupal\plugin\PluginDefinition\PluginDefinitionInterface
- interface \Drupal\plugin\PluginDefinition\PluginLabelDefinitionInterface
- interface \Drupal\plugin\PluginDefinition\PluginDefinitionInterface
Expanded class hierarchy of PluginLabelDefinitionInterface
All classes that implement PluginLabelDefinitionInterface
12 files declare their use of PluginLabelDefinitionInterface
- ListPlugins.php in src/
Controller/ ListPlugins.php - ListPluginsTest.php in tests/
src/ Unit/ Controller/ ListPluginsTest.php - PluginHierarchyTrait.php in src/
PluginHierarchyTrait.php - PluginHierarchyTraitTest.php in tests/
src/ Unit/ PluginHierarchyTraitTest.php - PluginId.php in src/
Plugin/ views/ filter/ PluginId.php
File
- src/
PluginDefinition/ PluginLabelDefinitionInterface.php, line 10
Namespace
Drupal\plugin\PluginDefinitionView source
interface PluginLabelDefinitionInterface extends PluginDefinitionInterface {
/**
* Sets the human-readable plugin label.
*
* @param \Drupal\Core\StringTranslation\TranslatableString|string $label
* The label.
*
* @return $this
*/
public function setLabel($label);
/**
* Gets the human-readable plugin label.
*
* @return \Drupal\Core\StringTranslation\TranslatableString|string|null
* The label or NULL if there is none.
*/
public function getLabel();
}
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 |
PluginLabelDefinitionInterface:: |
public | function | Gets the human-readable plugin label. | 1 |
PluginLabelDefinitionInterface:: |
public | function | Sets the human-readable plugin label. | 1 |