public function MediaGallery::setStatus in Media Gallery 8
Sets the media gallery status.
Parameters
bool $status: TRUE to enable this media gallery, FALSE to disable.
Return value
\Drupal\media_gallery\MediaGalleryInterface The called media gallery entity.
Overrides MediaGalleryInterface::setStatus
File
- src/
Entity/ MediaGallery.php, line 96
Class
- MediaGallery
- Defines the media gallery entity class.
Namespace
Drupal\media_gallery\EntityCode
public function setStatus($status) {
$this
->set('status', $status);
return $this;
}