You are here

public function Editor::id in Drupal 10

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

Gets the identifier.

Return value

string|int|null The entity identifier, or NULL if the object does not yet have an identifier.

Overrides EntityBase::id

File

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

Class

Editor
Defines the configured text editor entity.

Namespace

Drupal\editor\Entity

Code

public function id() {
  return $this->format;
}