public function ILT::getOwner in Opigno Instructor-led Trainings 8
Same name and namespace in other branches
- 3.x src/Entity/ILT.php \Drupal\opigno_ilt\Entity\ILT::getOwner()
Returns the entity owner's user entity.
Return value
\Drupal\user\UserInterface The owner user entity.
Overrides EntityOwnerInterface::getOwner
File
- src/
Entity/ ILT.php, line 69
Class
- ILT
- Defines the ILT entity.
Namespace
Drupal\opigno_ilt\EntityCode
public function getOwner() {
return $this
->get('user_id')->entity;
}