function ContentEntityTypeInterface::getRevisionMetadataKeys

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/ContentEntityTypeInterface.php \Drupal\Core\Entity\ContentEntityTypeInterface::getRevisionMetadataKeys()
  2. 8.9.x core/lib/Drupal/Core/Entity/ContentEntityTypeInterface.php \Drupal\Core\Entity\ContentEntityTypeInterface::getRevisionMetadataKeys()
  3. 11.x core/lib/Drupal/Core/Entity/ContentEntityTypeInterface.php \Drupal\Core\Entity\ContentEntityTypeInterface::getRevisionMetadataKeys()

Gets an array of entity revision metadata keys.

Return value

array An array describing how the Field API can extract revision metadata information of this entity type:

  • revision_log_message: The name of the property that contains description of the changes that were made in the current revision.
  • revision_user: The name of the property that contains the user ID of the author of the current revision.
  • revision_created: The name of the property that contains the timestamp of the current revision.
1 method overrides ContentEntityTypeInterface::getRevisionMetadataKeys()
ContentEntityType::getRevisionMetadataKeys in core/lib/Drupal/Core/Entity/ContentEntityType.php
Gets an array of entity revision metadata keys.

File

core/lib/Drupal/Core/Entity/ContentEntityTypeInterface.php, line 23

Class

ContentEntityTypeInterface
Provides an interface for a content entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function getRevisionMetadataKeys();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.