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