BlockContent::getRevisionUserId

public BlockContent::getRevisionUserId()

Gets the entity revision author ID.

Return value

int The user ID.

Overrides RevisionLogInterface::getRevisionUserId

File

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

Class

BlockContent
Defines the custom block entity class.

Namespace

Drupal\block_content\Entity

Code

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

Please login to continue.