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