You are here

public function Paragraph::getRevisionAuthor in Paragraphs 8

Deprecated

Paragraphs no longer have their own author, check the parent entity instead.

File

src/Entity/Paragraph.php, line 324

Class

Paragraph
Defines the Paragraph entity.

Namespace

Drupal\paragraphs\Entity

Code

public function getRevisionAuthor() {
  $parent = $this
    ->getParentEntity();
  if ($parent) {
    return $parent
      ->get('revision_uid')->entity;
  }
  return NULL;
}