You are here

public function DigestBase::setLastSent in Message Digest 8

Sets the last sent time.

Overrides DigestInterface::setLastSent

File

src/Plugin/Notifier/DigestBase.php, line 240

Class

DigestBase
Message Digest notifier.

Namespace

Drupal\message_digest\Plugin\Notifier

Code

public function setLastSent() {
  $this->state
    ->set($this
    ->getPluginId() . '_last_run', $this->time
    ->getRequestTime());
}