You are here

public function SimpleMegaMenu::getOwner in Simple Mega Menu 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/SimpleMegaMenu.php \Drupal\simple_megamenu\Entity\SimpleMegaMenu::getOwner()

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/SimpleMegaMenu.php, line 155

Class

SimpleMegaMenu
Defines the Simple mega menu entity.

Namespace

Drupal\simple_megamenu\Entity

Code

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