public function ArrayPluginDefinitionDecorator::setLabel in Plugin 8.2
Sets the human-readable plugin label.
Parameters
\Drupal\Core\StringTranslation\TranslatableString|string $label: The label.
Return value
$this
Overrides PluginLabelDefinitionInterface::setLabel
7 methods override ArrayPluginDefinitionDecorator::setLabel()
- ArchiverPluginDefinitionDecorator::setLabel in src/
PluginDefinition/ ArchiverPluginDefinitionDecorator.php - Sets the human-readable plugin label.
- BlockPluginDefinitionDecorator::setLabel in src/
PluginDefinition/ BlockPluginDefinitionDecorator.php - Sets the human-readable plugin label.
- DisplayVariantPluginDefinitionDecorator::setLabel in src/
PluginDefinition/ DisplayVariantPluginDefinitionDecorator.php - Sets the human-readable plugin label.
- FilterPluginDefinitionDecorator::setLabel in src/
PluginDefinition/ FilterPluginDefinitionDecorator.php - Sets the human-readable plugin label.
- LinkPluginDefinitionDecorator::setLabel in src/
PluginDefinition/ LinkPluginDefinitionDecorator.php - Sets the human-readable plugin label.
File
- src/
PluginDefinition/ ArrayPluginDefinitionDecorator.php, line 124
Class
- ArrayPluginDefinitionDecorator
- Provides a plugin definition based on an array.
Namespace
Drupal\plugin\PluginDefinitionCode
public function setLabel($label) {
$this->arrayDefinition['label'] = $label;
return $this;
}