Commit dfd3008b authored by catch's avatar catch
Browse files

Issue #3417136 by dww, quietone, longwave, catch, xjm, lostcarpark, andypost,...

Issue #3417136 by dww, quietone, longwave, catch, xjm, lostcarpark, andypost, phenaproxima: Remove adding an extension via a URL
parent e47f22df
Loading
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -986,7 +986,7 @@ function hook_update_last_removed() {
 *
 * Drupal\Core\Updater\Updater is a class that knows how to update various parts
 * of the Drupal file system, for example to update modules that have newer
 * releases, or to install a new theme.
 * releases.
 *
 * @return array
 *   An associative array of information about the updater(s) being provided.
@@ -1026,8 +1026,7 @@ function hook_updater_info() {
 * Alter the Updater information array.
 *
 * An Updater is a class that knows how to update various parts of the Drupal
 * file system, for example to update modules that have newer releases, or to
 * install a new theme.
 * file system, for example to update modules that have newer releases.
 *
 * @param array $updaters
 *   Associative array of updaters as defined through hook_updater_info().
+0 −4
Original line number Diff line number Diff line
@@ -92,10 +92,6 @@ public function postInstallTasks() {
      ],
    ];
    return [
      $default_options + [
        '#url' => Url::fromRoute('update.module_install'),
        '#title' => t('Add another module'),
      ],
      $default_options + [
        '#url' => Url::fromRoute('system.modules_list'),
        '#title' => t('Install newly added modules'),
+5 −5
Original line number Diff line number Diff line
@@ -119,7 +119,7 @@ function system_help($route_name, RouteMatchInterface $route_match) {
    case 'system.modules_list':
      $output = '<p>' . t('Add <a href=":modules">contributed modules</a> to extend your site\'s functionality.', [':modules' => 'https://www.drupal.org/project/modules']) . '</p>';
      if (!\Drupal::moduleHandler()->moduleExists('update')) {
        $output .= '<p>' . t('Regularly review available updates and update as required to maintain a secure and current site. Always run the <a href=":update-php">update script</a> each time a module is updated. Install the <a href=":update-manager">Update Manager module</a> to update and add modules and themes.', [':update-php' => Url::fromRoute('system.db_update')->toString(), ':update-manager' => Url::fromRoute('system.modules_list', [], ['fragment' => 'module-update'])->toString()]) . '</p>';
        $output .= '<p>' . t('Regularly review available updates and update as required to maintain a secure and current site. Always run the <a href=":update-php">update script</a> each time a module is updated. Install the <a href=":update-manager">Update Manager module</a> to update modules and themes.', [':update-php' => Url::fromRoute('system.db_update')->toString(), ':update-manager' => Url::fromRoute('system.modules_list', [], ['fragment' => 'module-update'])->toString()]) . '</p>';
      }
      return $output;

@@ -433,11 +433,11 @@ function template_preprocess_entity_add_list(&$variables) {
 *   system_authorized_init($callback, $file, $arguments, $page_title);
 *   return new RedirectResponse(system_authorized_get_url()->toString());
 * @endcode
 * Example (update_manager_install_form_submit()):
 * Example (Drupal\update\Form\UpdateReady::submitForm()):
 * @code
 *  system_authorized_init('update_authorize_run_install',
 *    \Drupal::service('extension.list.module')->getPath('update') . '/update.authorize.inc',
 *    $arguments, t('Update manager'));
 *  system_authorized_init('update_authorize_run_update',
 *    __DIR__ . '/../../update.authorize.inc',
 *    [$updates], $this->t('Update manager'));
 *  $form_state->setRedirectUrl(system_authorized_get_url());
 * @endcode
 *
+5 −0
Original line number Diff line number Diff line
@@ -15,6 +15,10 @@
/**
 * Configure update settings for this site.
 *
 * @deprecated in drupal:10.4.0 and is removed from drupal:11.1.0. There is no replacement.
 *
 * @see https://www.drupal.org/node/3461934
 *
 * @internal
 */
class UpdateManagerInstall extends FormBase {
@@ -60,6 +64,7 @@ class UpdateManagerInstall extends FormBase {
   *   The archiver plugin manager service.
   */
  public function __construct($root, ModuleHandlerInterface $module_handler, $site_path, ArchiverManager $archiver_manager) {
    @trigger_error('The UpdateManagerInstall form is deprecated in drupal:10.4.0 and will be removed in drupal:11.1.0. There is no replacement. See https://www.drupal.org/node/3461934');
    $this->root = $root;
    $this->moduleHandler = $module_handler;
    $this->sitePath = $site_path;
+0 −3
Original line number Diff line number Diff line
@@ -29,11 +29,8 @@ protected function alterRoutes(RouteCollection $collection) {
      return;
    }
    $routes = [
      'update.report_install',
      'update.report_update',
      'update.module_install',
      'update.module_update',
      'update.theme_install',
      'update.theme_update',
      'update.confirmation_page',
    ];
Loading