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