function ContentEntityBase::id

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::id()
  2. 11.x core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::id()
10 calls to ContentEntityBase::id()
Comment::permalink in core/modules/comment/src/Entity/Comment.php
Returns the permalink URL for this comment.
Media::prepareSave in core/modules/media/src/Entity/Media.php
Sets the media entity's field values from the source's metadata.
MenuLinkContent::getPluginDefinition in core/modules/menu_link_content/src/Entity/MenuLinkContent.php
Builds up the menu link plugin definition for this entity.
Node::postSave in core/modules/node/src/Entity/Node.php
Acts on a saved entity before the insert or update hook is invoked.
User::hasPermission in core/modules/user/src/Entity/User.php
Checks whether a user has a certain permission.

... See full list

File

core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 538

Class

ContentEntityBase
Implements Entity Field API specific enhancements to the Entity class.

Namespace

Drupal\Core\Entity

Code

public function id() {
  return $this->getEntityKey('id');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.