public function Schedule::getOwnerId in Business Rules 2.x
Same name and namespace in other branches
- 8 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 204
Class
- Schedule
- Defines the Schedule entity.
Namespace
Drupal\business_rules\EntityCode
public function getOwnerId() {
return $this
->get('user_id')->target_id;
}