Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RevisionLogEntityTrait.php

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\Entity

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal