function RevisionLogEntityTrait::getRevisionUser

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php \Drupal\Core\Entity\RevisionLogEntityTrait::getRevisionUser()
  2. 10 core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php \Drupal\Core\Entity\RevisionLogEntityTrait::getRevisionUser()
  3. 11.x core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php \Drupal\Core\Entity\RevisionLogEntityTrait::getRevisionUser()

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

2 calls to RevisionLogEntityTrait::getRevisionUser()
Node::getRevisionAuthor in core/modules/node/src/Entity/Node.php
Gets the node revision author.
Node::preSave in core/modules/node/src/Entity/Node.php
Acts on an entity before the presave hook is invoked.
1 method overrides RevisionLogEntityTrait::getRevisionUser()
BlockContent::getRevisionUser in core/modules/block_content/src/Entity/BlockContent.php
Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUser().

File

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

Class

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

Namespace

Drupal\Core\Entity

Code

public function getRevisionUser() {
    return $this->{static::getRevisionMetadataKey($this->getEntityType(), 'revision_user')}->entity;
}

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