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