function PackageManagerUpdateProcessor::processFetchTask

File

core/modules/package_manager/src/PackageManagerUpdateProcessor.php, line 81

Class

PackageManagerUpdateProcessor
Extends the Update module's update processor allow fetching any project.

Namespace

Drupal\package_manager

Code

public function processFetchTask($project) {
    // The parent method will set 'update.last_check' which will be used to
    // inform the user when the last time update information was checked. In
    // order to leave this value unaffected we will reset this to its previous
    // value.
    $last_check = $this->stateStore
        ->get('update.last_check');
    $success = parent::processFetchTask($project);
    $this->stateStore
        ->set('update.last_check', $last_check);
    return $success;
}

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