$container->
get('module_handler'
),
$container->
getParameter('site.path'
),
$container->
get('plugin.manager.archiver'
) );
} /**
* {@inheritdoc}
*/
public function buildForm(array
$form, FormStateInterface
$form_state) { $this->moduleHandler->
loadInclude('update', 'inc', 'update.manager'
);
if (!
_update_manager_check_backends($form, 'install'
)) { return $form;
} $form['help_text'
] =
[ '#prefix' => '<p>',
'#markup' =>
$this->
t('You can find <a href=":module_url">modules</a> and <a href=":theme_url">themes</a> on <a href=":drupal_org_url">drupal.org</a>. The following file extensions are supported: %extensions.',
[ ':module_url' => 'https://www.drupal.org/project/modules',
':theme_url' => 'https://www.drupal.org/project/themes',
':drupal_org_url' => 'https://www.drupal.org',
'%extensions' =>
$this->archiverManager->
getExtensions(),
]),