Same name and namespace in other branches
  1. 8.9.x 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 94

Class

Editor
Defines the configured text editor entity.

Namespace

Drupal\editor\Entity

Code

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