public function OpignoCertificate::getOwnerId in Opigno certificate 3.x
Same name and namespace in other branches
- 8 src/Entity/OpignoCertificate.php \Drupal\opigno_certificate\Entity\OpignoCertificate::getOwnerId()
Returns the entity owner's user ID.
Return value
int|null The owner user ID, or NULL in case the user ID field has not been set on the entity.
Overrides EntityOwnerInterface::getOwnerId
1 call to OpignoCertificate::getOwnerId()
- OpignoCertificate::preSave in src/
Entity/ OpignoCertificate.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ OpignoCertificate.php, line 144
Class
- OpignoCertificate
- Defines the opigno_certificate entity class.
Namespace
Drupal\opigno_certificate\EntityCode
public function getOwnerId() {
return $this
->getEntityKey('uid');
}