public function ArrayPluginDefinitionDecorator::getDescription in Plugin 8.2
Gets the human-readable plugin description.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup|string|null The description or NULL if there is none.
Overrides PluginDescriptionDefinitionInterface::getDescription
File
- src/
PluginDefinition/ ArrayPluginDefinitionDecorator.php, line 149
Class
- ArrayPluginDefinitionDecorator
- Provides a plugin definition based on an array.
Namespace
Drupal\plugin\PluginDefinitionCode
public function getDescription() {
return isset($this->arrayDefinition['description']) ? $this->arrayDefinition['description'] : NULL;
}