function ExtensionList::getList
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::getList()
- 9 core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::getList()
- 8.9.x core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::getList()
Returns all available extensions.
Return value
\Drupal\Core\Extension\Extension[] Processed extension objects, keyed by machine name.
File
-
core/
lib/ Drupal/ Core/ Extension/ ExtensionList.php, line 275
Class
- ExtensionList
- Provides available extensions.
Namespace
Drupal\Core\ExtensionCode
public function getList() {
if ($this->extensions !== NULL) {
return $this->extensions;
}
if ($cache = $this->cache
->get($this->getListCacheId())) {
$this->extensions = $cache->data;
return $this->extensions;
}
$extensions = $this->doList();
$this->cache
->set($this->getListCacheId(), $extensions);
$this->extensions = $extensions;
return $this->extensions;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.