diff -u b/core/modules/taxonomy/lib/Drupal/taxonomy/TermFormController.php b/core/modules/taxonomy/lib/Drupal/taxonomy/TermFormController.php --- b/core/modules/taxonomy/lib/Drupal/taxonomy/TermFormController.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/TermFormController.php @@ -9,8 +9,6 @@ use Drupal\Core\Entity\EntityFormControllerNG; use Drupal\Core\Language\Language; -use Symfony\Component\DependencyInjection\ContainerInterface; -use Symfony\Component\HttpFoundation\Request; /** * Base for controller for taxonomy term edit forms. @@ -18,21 +16,6 @@ class TermFormController extends EntityFormControllerNG { /** - * The current request. - * - * @var \Symfony\Component\HttpFoundation\Request - */ - protected $request; - - /** - * {@inheritdoc} - */ - public function buildForm(array $form, array &$form_state, Request $request = NULL) { - $this->request = $request; - return parent::buildForm($form, $form_state); - } - - /** * Overrides Drupal\Core\Entity\EntityFormController::form(). */ public function form(array $form, array &$form_state) { @@ -216,7 +199,7 @@ */ public function delete(array $form, array &$form_state) { $destination = array(); - if ($this->request->query->has('destination')) { + if ($this->getRequest()->query->has('destination')) { $destination = drupal_get_destination(); } $form_state['redirect'] = array('taxonomy/term/' . $this->entity->id() . '/delete', array('query' => $destination));