BlockContent::getRevisionUser

public BlockContent::getRevisionUser()

Gets the entity revision author.

Return value

\Drupal\user\UserInterface The user entity for the revision author.

Overrides RevisionLogInterface::getRevisionUser

File

core/modules/block_content/src/Entity/BlockContent.php, line 254

Class

BlockContent
Defines the custom block entity class.

Namespace

Drupal\block_content\Entity

Code

public function getRevisionUser() {
  return $this->get('revision_user')->entity;
}
doc_Drupal
2016-10-29 08:46:44
Comments
Leave a Comment

Please login to continue.