protected function ProjectInfoTrait::getExtensionList in Automatic Updates 8
Get extension list.
Parameters
string $extension_type: The extension type.
Return value
\Drupal\Core\Extension\ExtensionList The extension list service.
File
- src/
ProjectInfoTrait.php, line 19
Class
- ProjectInfoTrait
- Provide a helper to get project info.
Namespace
Drupal\automatic_updatesCode
protected function getExtensionList($extension_type) {
if (isset($this->{$extension_type})) {
$list = $this->{$extension_type};
}
else {
$list = \Drupal::service("extension.list.{$extension_type}");
}
return $list;
}