You are here

public function RevisionLogEntityTrait::getRevisionLogMessage in Drupal 10

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

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

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

File

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

Class

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

Namespace

Drupal\Core\Entity

Code

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