You are here

public function SitewideAlert::isDismissible in Sitewide Alert 8

Returns weather or not the Sitewide Alert is dismissible.

Return value

bool TRUE if the sitewide alert is dismissible, FALSE otherwise.

Overrides SitewideAlertInterface::isDismissible

File

src/Entity/SitewideAlert.php, line 450

Class

SitewideAlert
Defines the Sitewide Alert entity.

Namespace

Drupal\sitewide_alert\Entity

Code

public function isDismissible() : bool {
  return (bool) $this
    ->get('dismissible')->value;
}