You are here

public function ParagraphSet::getOwner in Paragraphs frontend ui 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/ParagraphSet.php, line 106

Class

ParagraphSet
Defines the Paragraph set entity.

Namespace

Drupal\paragraphs_frontend_ui\Entity

Code

public function getOwner() {
  return $this
    ->get('user_id')->entity;
}