Entity::id

public function 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

登录查看完整内容