Implements EntityInterface::id().
Overrides EntityInterface::id
File
- drupal/core/lib/Drupal/Core/Entity/Entity.php, line 79
- Definition of Drupal\Core\Entity\Entity.
Class
- Entity
- Defines a base entity class.
Namespace
Drupal\Core\Entity
Code
public function id() {
return isset($this->id) ? $this->id : NULL;
}