function EntityType::hasKey
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::hasKey()
- 8.9.x core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::hasKey()
- 10 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::hasKey()
Overrides EntityTypeInterface::hasKey
1 call to EntityType::hasKey()
- EntityType::isRevisionable in core/
lib/ Drupal/ Core/ Entity/ EntityType.php - Indicates whether entities of this type have revision support.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityType.php, line 442
Class
- EntityType
- Provides an implementation of an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function hasKey($key) {
$keys = $this->getKeys();
return !empty($keys[$key]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.