function RevisionLogEntityTrait::getRevisionUser
Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUser().
1 call to RevisionLogEntityTrait::getRevisionUser()
- Node::preSave in core/
modules/ node/ src/ Entity/ Node.php - Acts on an entity before the presave hook is invoked.
File
-
core/
lib/ Drupal/ Core/ Entity/ RevisionLogEntityTrait.php, line 84
Class
- RevisionLogEntityTrait
- Provides a trait for accessing revision logging and ownership information.
Namespace
Drupal\Core\EntityCode
public function getRevisionUser() {
return $this->{$this->getEntityType()
->getRevisionMetadataKey('revision_user')}->entity;
}