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