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