public function Conditions::getOwner in Legal 2.0.x
Same name and namespace in other branches
- 8 src/Entity/Conditions.php \Drupal\legal\Entity\Conditions::getOwner()
Returns the entity owner's user entity.
Return value
\Drupal\user\UserInterface The owner user entity.
Overrides EntityOwnerInterface::getOwner
File
- src/
Entity/ Conditions.php, line 57
Class
- Conditions
- Defines the Legal Terms & Conditions entity.
Namespace
Drupal\legal\EntityCode
public function getOwner() {
return $this
->get('user_id')->entity;
}