public function EntityTyp8b7c:f320:99b9:690f:4595:cd17:293a:c069getKey public EntityTyp8b7c:f320:99b9:690f:4595:cd17:293a:c069getKey($key) Gets a specific entity key. Parameters  string $key: The name of the entity key to return. Return value  string|bool The entity key, or FALSE if it does not exist. Overrides EntityTypeInter8b7c:f320:99b9:690f:4595:cd17:293a:c069getKey See also  sel8b7c:f320:99b9:690f:4595:cd17:293a:c069getKeys() File
 core/lib/Drupal/Core/Entity/EntityType.php, line 371  Class
 
EntityType  Provides an implementation of an entity type and its metadata.  Namespace Drupal\Core\Entity Code public function getKey($key) {
  $keys = $this->getKeys();
  return isset($keys[$key]) ? $keys[$key] : FALSE;
}


    
{'path': 'public/docs/drupal~8/core-lib-drupal-core-entity-entitytype.php/function/entitytype-getkey/8.1.x.html', 'source': 'DevDocs.IO'}