function EntityTypeInterface::getKey
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getKey()
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getKey()
- 11.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getKey()
Gets a specific entity key.
Parameters
string $key: The name of the entity key to return.
Return value
string|false The entity key, or FALSE if it does not exist.
See also
1 method overrides EntityTypeInterface::getKey()
- EntityType::getKey in core/
lib/ Drupal/ Core/ Entity/ EntityType.php - Gets a specific entity key.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityTypeInterface.php, line 115
Class
- EntityTypeInterface
- Provides an interface for an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function getKey($key);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.