You are here

public function RevisionLogEntityTrait::getRevisionUserId in Drupal 8

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

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

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

File

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

Class

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

Namespace

Drupal\Core\Entity

Code

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