You are here

public function MediaInterface::setPublished in Media entity 8

Sets the published status of a media.

Parameters

bool $published: TRUE to set this media to published, FALSE to set it to unpublished.

Return value

\Drupal\media_entity\MediaInterface The called media entity.

1 method overrides MediaInterface::setPublished()
Media::setPublished in src/Entity/Media.php
Sets the published status of a media.

File

src/MediaInterface.php, line 84

Class

MediaInterface
Provides an interface defining a media entity.

Namespace

Drupal\media_entity

Code

public function setPublished($published);