You are here

public function SecurityAdvisoriesFetcher::deleteStoredResponse in Drupal 10

Same name and namespace in other branches
  1. 9 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 169

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);
}