function _drush_pm_get_extension_cache

8.0.x pm.drush.inc _drush_pm_get_extension_cache()
6.x pm.drush.inc _drush_pm_get_extension_cache()
7.x pm.drush.inc _drush_pm_get_extension_cache()
4.x pm.drush.inc _drush_pm_get_extension_cache()
5.x pm.drush.inc _drush_pm_get_extension_cache()
master pm.drush.inc _drush_pm_get_extension_cache()

Load the extensions cache.

2 calls to _drush_pm_get_extension_cache()
drush_pm_cache_project_extensions in commands/pm/pm.drush.inc
Store extensions founds within a project in extensions cache.
drush_pm_lookup_extension_in_cache in commands/pm/pm.drush.inc
Lookup an extension in the extensions cache.

File

commands/pm/pm.drush.inc, line 2020
The drush Project Manager

Code

function _drush_pm_get_extension_cache() {
  $extension_cache = array();
  $cache_file = _drush_pm_extension_cache_file();

  if (file_exists($cache_file)) {
    include $cache_file;
  }
  if (!array_key_exists('extension-map', $extension_cache)) {
    $extension_cache['extension-map'] = array();
  }
  return $extension_cache;
}