<?php
-/**
- * @file
- * Contains \Drupal\security_review\SecurityReview.
- */
-
namespace Drupal\security_review;
use Drupal\Core\Config\ConfigFactoryInterface;
* The last time Security Review has been run.
*/
public function getLastRun() {
- return $this->config->get('last_run');
+ return $this->state->get('last_run', 0);
}
/**
* The new value for 'last_run'.
*/
public function setLastRun($last_run) {
- $this->config->set('last_run', $last_run);
- $this->config->save();
+ $this->state->set('last_run', $last_run);
}
/**