diff --git a/core/modules/locale/lib/Drupal/locale/Controller/LocaleController.php b/core/modules/locale/lib/Drupal/locale/Controller/LocaleController.php index 5d813f2..f888b98 100644 --- a/core/modules/locale/lib/Drupal/locale/Controller/LocaleController.php +++ b/core/modules/locale/lib/Drupal/locale/Controller/LocaleController.php @@ -20,21 +20,6 @@ class LocaleController extends ControllerBase { /** - * The module handler. - * - * @var \Drupal\Core\Extension\ModuleHandlerInterface - */ - protected $moduleHandler; - - /** - * Constructs a \Drupal\locale\Controller\LocaleController object. - */ - public function __construct() { - $this->moduleHandler = $this->container->get('module_handler'); - $this->urlGenerator = $this->container->get('url_generator'); - } - - /** * Checks for translation updates and displays the translations status. * * Manually checks the translation status without the use of cron. @@ -57,7 +42,7 @@ public function checkTranslation() { return batch_process('admin/reports/translations'); } - return new RedirectResponse($this->urlGenerator->generateFromPath('admin/reports/translations', array('absolute' => TRUE))); + return $this->redirect($this->urlGenerator->generateFromPath('admin/reports/translations', array('absolute' => TRUE))); } /** diff --git a/core/modules/locale/lib/Drupal/locale/Form/TranslateFormBase.php b/core/modules/locale/lib/Drupal/locale/Form/TranslateFormBase.php index fcf3725..6753f82 100644 --- a/core/modules/locale/lib/Drupal/locale/Form/TranslateFormBase.php +++ b/core/modules/locale/lib/Drupal/locale/Form/TranslateFormBase.php @@ -56,7 +56,7 @@ public function __construct(StringStorageInterface $locale_storage, KeyValueStor public static function create(ContainerInterface $container) { return new static( $container->get('locale.storage'), - $container->get('keyvalue')->get('state'); + $container->get('keyvalue')->get('state') ); }