You are here

public function SitewideAlert::setDismissibleIgnoreBeforeTime in Sitewide Alert 8

Sets the timestamp of when any dismissals should be ignored before.

Parameters

int $timestamp: The UNIX timestamp oof when any dismissals should be ignored before.

Return value

$this

Overrides SitewideAlertInterface::setDismissibleIgnoreBeforeTime

File

src/Entity/SitewideAlert.php, line 464

Class

SitewideAlert
Defines the Sitewide Alert entity.

Namespace

Drupal\sitewide_alert\Entity

Code

public function setDismissibleIgnoreBeforeTime($timestamp) : SitewideAlertInterface {
  $this
    ->get('dismissible_ignore_before_time')->value = $timestamp;
  return $this;
}