function EntityTypeInterface::hasKey
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::hasKey()
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::hasKey()
- 10 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::hasKey()
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 126
Class
- EntityTypeInterface
- Provides an interface for an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function hasKey($key);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.