You are here

public function SitewideAlert::shouldNegatePagesToShowOn in Sitewide Alert 8

Should we negate the pages we show on.

Return value

bool TRUE if we should negate the page patterns, FALSE otherwise.

Overrides SitewideAlertInterface::shouldNegatePagesToShowOn

File

src/Entity/SitewideAlert.php, line 507

Class

SitewideAlert
Defines the Sitewide Alert entity.

Namespace

Drupal\sitewide_alert\Entity

Code

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