You are here

public function RevisionLogEntityTrait::getRevisionCreationTime in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php \Drupal\Core\Entity\RevisionLogEntityTrait::getRevisionCreationTime()

Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionCreationTime().

1 method overrides RevisionLogEntityTrait::getRevisionCreationTime()
BlockContent::getRevisionCreationTime in core/modules/block_content/src/Entity/BlockContent.php
Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionCreationTime().

File

core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php, line 69

Class

RevisionLogEntityTrait
Provides a trait for accessing revision logging and ownership information.

Namespace

Drupal\Core\Entity

Code

public function getRevisionCreationTime() {
  return $this->{$this
    ->getEntityType()
    ->getRevisionMetadataKey('revision_created')}->value;
}