You are here

public function Schedule::getOwnerId in Business Rules 8

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

Returns the entity owner's user ID.

Return value

int|null The owner user ID, or NULL in case the user ID field has not been set on the entity.

Overrides EntityOwnerInterface::getOwnerId

1 call to Schedule::getOwnerId()
Schedule::preSave in src/Entity/Schedule.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/Schedule.php, line 200

Class

Schedule
Defines the Schedule entity.

Namespace

Drupal\business_rules\Entity

Code

public function getOwnerId() {
  return $this
    ->get('user_id')->target_id;
}