public function AccessToken::getOwner in Access unpublished 8
Returns the entity owner's user entity.
Return value
\Drupal\user\UserInterface The owner user entity.
Overrides EntityOwnerInterface::getOwner
File
- src/
Entity/ AccessToken.php, line 91
Class
- AccessToken
- Defines the Access token entity.
Namespace
Drupal\access_unpublished\EntityCode
public function getOwner() {
return $this
->get('user_id')->entity;
}