You are here

public function MediaGallery::isEnabled in Media Gallery 8

Returns the media gallery status.

Return value

bool TRUE if the media gallery is enabled, FALSE otherwise.

Overrides MediaGalleryInterface::isEnabled

File

src/Entity/MediaGallery.php, line 89

Class

MediaGallery
Defines the media gallery entity class.

Namespace

Drupal\media_gallery\Entity

Code

public function isEnabled() {
  return (bool) $this
    ->get('status')->value;
}