function SecurityAdvisoriesFetcher::deleteStoredResponse

Same name and namespace in other branches
  1. 9 core/modules/system/src/SecurityAdvisories/SecurityAdvisoriesFetcher.php \Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher::deleteStoredResponse()
  2. 10 core/modules/system/src/SecurityAdvisories/SecurityAdvisoriesFetcher.php \Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher::deleteStoredResponse()

Deletes the stored JSON feed response, if any.

File

core/modules/system/src/SecurityAdvisories/SecurityAdvisoriesFetcher.php, line 170

Class

SecurityAdvisoriesFetcher
Defines a service to get security advisories.

Namespace

Drupal\system\SecurityAdvisories

Code

public function deleteStoredResponse() : void {
    $this->keyValueExpirable
        ->delete(self::ADVISORIES_JSON_EXPIRABLE_KEY);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.