You are here

public function WarmerPluginBase::markAsEnqueued in Warmer 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/WarmerPluginBase.php \Drupal\warmer\Plugin\WarmerPluginBase::markAsEnqueued()

Marks a warmer as enqueued.

Overrides WarmerInterface::markAsEnqueued

File

src/Plugin/WarmerPluginBase.php, line 191

Class

WarmerPluginBase
Base class for warmer plugins that implement settings forms.

Namespace

Drupal\warmer\Plugin

Code

public function markAsEnqueued() {
  $configuration = $this
    ->getConfiguration();
  $this->state
    ->set('previous_enqueue_time:' . $configuration['id'], $this->time
    ->getRequestTime());
}