public function SiteSettingEntity::getOwner in Site Settings and Labels 8
Returns the entity owner's user entity.
Return value
\Drupal\user\UserInterface The owner user entity.
Overrides EntityOwnerInterface::getOwner
File
- src/
Entity/ SiteSettingEntity.php, line 141
Class
- SiteSettingEntity
- Defines the Site Setting entity.
Namespace
Drupal\site_settings\EntityCode
public function getOwner() {
return $this
->get('user_id')->entity;
}