function ContentEntityType::hasRevisionMetadataKey
Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/Entity/ContentEntityType.php \Drupal\Core\Entity\ContentEntityType::hasRevisionMetadataKey()
- 10 core/lib/Drupal/Core/Entity/ContentEntityType.php \Drupal\Core\Entity\ContentEntityType::hasRevisionMetadataKey()
- 11.x core/lib/Drupal/Core/Entity/ContentEntityType.php \Drupal\Core\Entity\ContentEntityType::hasRevisionMetadataKey()
Indicates if a given entity revision metadata key exists.
Parameters
string $key: The name of the entity revision metadata key to check.
Return value
bool TRUE if a given entity revision metadata key exists, FALSE otherwise.
Overrides ContentEntityTypeInterface::hasRevisionMetadataKey
File
-
core/
lib/ Drupal/ Core/ Entity/ ContentEntityType.php, line 74
Class
- ContentEntityType
- Provides an implementation of a content entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function hasRevisionMetadataKey($key) {
$keys = $this->getRevisionMetadataKeys();
return isset($keys[$key]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.