public function Media::getPublisherId in Media entity 8
Returns the media publisher user ID.
Return value
int The author user ID.
Overrides MediaInterface::getPublisherId
1 call to Media::getPublisherId()
- Media::preSave in src/
Entity/ Media.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ Media.php, line 140
Class
- Media
- Defines the media entity class.
Namespace
Drupal\media_entity\EntityCode
public function getPublisherId() {
return $this
->get('uid')->target_id;
}