public function EntityInterface::id

Returns the entity identifier (the entity's machine name or numeric ID).

Return value

The identifier of the entity, or NULL if the entity does not yet have an identifier.

3 methods override EntityInterface::id()
Entity::id in drupal/core/lib/Drupal/Core/Entity/Entity.php
Implements \Drupal\Core\Entity\EntityInterface::id().
EntityBCDecorator::id in drupal/core/lib/Drupal/Core/Entity/EntityBCDecorator.php
Forwards the call to the decorated entity.
ViewUI::id in drupal/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php
Implements \Drupal\Core\Entity\EntityInterface::id().

File

drupal/core/lib/Drupal/Core/Entity/EntityInterface.php, line 39
Contains \Drupal\Core\Entity\EntityInterface.

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function id();