public function DataPolicy::getOwner in Data Policy 8
Returns the entity owner's user entity.
Return value
\Drupal\user\UserInterface The owner user entity.
Overrides EntityOwnerInterface::getOwner
File
- src/
Entity/ DataPolicy.php, line 133
Class
- DataPolicy
- Defines the Data policy entity.
Namespace
Drupal\data_policy\EntityCode
public function getOwner() {
return $this
->get('user_id')->entity;
}