Same name and namespace in other branches
  1. 8.9.x core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::label()
  2. 9 core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::label()

Gets the label of the entity.

Return value

string|\Drupal\Core\StringTranslation\TranslatableMarkup|null The label of the entity, or NULL if there is no label defined.

Overrides EntityBase::label

File

core/modules/editor/src/Entity/Editor.php, line 118

Class

Editor
Defines the configured text editor entity.

Namespace

Drupal\editor\Entity

Code

public function label() {
  return $this
    ->getFilterFormat()
    ->label();
}