function CKEditor5PluginDefinition::label
Same name in other branches
- 9 core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php \Drupal\ckeditor5\Plugin\CKEditor5PluginDefinition::label()
- 10 core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php \Drupal\ckeditor5\Plugin\CKEditor5PluginDefinition::label()
Gets the human-readable name of the CKEditor plugin.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The human-readable name of the CKEditor plugin.
See also
\Drupal\ckeditor5\Annotation\DrupalAspectsOfCKEditor5Plugin::$label
File
-
core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginDefinition.php, line 355
Class
- CKEditor5PluginDefinition
- Provides an implementation of a CKEditor 5 plugin definition.
Namespace
Drupal\ckeditor5\PluginCode
public function label() : TranslatableMarkup {
$label = $this->drupal['label'];
if (!$label instanceof TranslatableMarkup) {
// phpcs:ignore Drupal.Semantics.FunctionT.NotLiteralString
$label = new TranslatableMarkup($label);
}
return $label;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.