8.3.x EntityTypeInterface.php public EntityTypeInterface::getKey($key)
8.0.x EntityTypeInterface.php public EntityTypeInterface::getKey($key)
8.1.x EntityTypeInterface.php public EntityTypeInterface::getKey($key)
8.2.x EntityTypeInterface.php public EntityTypeInterface::getKey($key)
8.4.x EntityTypeInterface.php public EntityTypeInterface::getKey($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.

See also

self::getKeys()

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 122

Class

EntityTypeInterface
Provides an interface for an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function getKey($key);