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; }
Please login to continue.