Entity::id

public Entity::id()

Gets the identifier.

Return value

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

Overrides EntityInterface::id

File

core/lib/Drupal/Core/Entity/Entity.php, line 111

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function id() {
  return isset($this->id) ? $this->id : NULL;
}
doc_Drupal
2016-10-29 09:04:20
Comments
Leave a Comment

Please login to continue.