You are here

protected static function ModifiedFilesService::getHashRequests in Automatic Updates 7

Get an iterator of extension name and hash URL.

@codingStandardsIgnoreStart

@@codingStandardsIgnoreEnd

Parameters

array $extensions: The list of extensions, keyed by extension name and value the info array.

Return value

\Generator

1 call to ModifiedFilesService::getHashRequests()
ModifiedFilesService::getModifiedFiles in ./ModifiedFilesService.php
Get list of modified files.

File

./ModifiedFilesService.php, line 98

Class

ModifiedFilesService
Modified files service.

Code

protected static function getHashRequests(array $extensions) {
  foreach ($extensions as $name => $info) {

    // We can't check for modifications if we don't know the version.
    if (!$info['version']) {
      continue;
    }
    (yield [
      $name => self::buildUrl($info),
    ]);
  }
}