public function EasyEmail::getCreatorId in Easy Email 8
Same name and namespace in other branches
- 2.0.x src/Entity/EasyEmail.php \Drupal\easy_email\Entity\EasyEmail::getCreatorId()
Returns the entity creator's user ID.
Return value
int|null The creator user ID, or NULL in case the creator ID field has not been set on the entity.
Overrides EasyEmailInterface::getCreatorId
1 call to EasyEmail::getCreatorId()
- EasyEmail::preSave in src/
Entity/ EasyEmail.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ EasyEmail.php, line 184
Class
- EasyEmail
- Defines the Email entity.
Namespace
Drupal\easy_email\EntityCode
public function getCreatorId() {
return $this
->get('creator_uid')->target_id;
}