You are here

public function Schedule::getOwner in Business Rules 8

Same name and namespace in other branches
  1. 2.x src/Entity/Schedule.php \Drupal\business_rules\Entity\Schedule::getOwner()

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/Schedule.php, line 175

Class

Schedule
Defines the Schedule entity.

Namespace

Drupal\business_rules\Entity

Code

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