8.2.x EntityTypeInterface.php public EntityTypeInterface::hasKey($key)
8.0.x EntityTypeInterface.php public EntityTypeInterface::hasKey($key)
8.1.x EntityTypeInterface.php public EntityTypeInterface::hasKey($key)
8.3.x EntityTypeInterface.php public EntityTypeInterface::hasKey($key)

Indicates if a given entity key exists.

Parameters

string $key: The name of the entity key to check.

Return value

bool TRUE if a given entity key exists, FALSE otherwise.

1 method overrides EntityTypeInterface::hasKey()
EntityType::hasKey in core/lib/Drupal/Core/Entity/EntityType.php
Indicates if a given entity key exists.

File

core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 133

Class

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

Namespace

Drupal\Core\Entity

Code

public function hasKey($key);