public function Media::setPublisherId in Media entity 8
Sets the media publisher user ID.
Parameters
int $uid: The author user id.
Return value
\Drupal\media_entity\MediaInterface The called media entity.
Overrides MediaInterface::setPublisherId
File
- src/
Entity/ Media.php, line 147
Class
- Media
- Defines the media entity class.
Namespace
Drupal\media_entity\EntityCode
public function setPublisherId($uid) {
$this
->set('uid', $uid);
return $this;
}