protected ContentEntityBase::getEntityKey($key)
Gets the value of the given entity key, if defined.
Parameters
string $key: Name of the entity key, for example id, revision or bundle.
Return value
mixed The value of the entity key, NULL if not defined.
File
core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 1088
Class
ContentEntityBase Implements Entity Field API specific enhancements to the Entity class.
Namespace
Drupal\Core\Entity
Code
protected function getEntityKey($key) {