Skip to content
Snippets Groups Projects
Commit 972ad350 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2045709 by damiankloip, fubhy: Remove tempStore dependency from ViewsUIController.

parent 51efbbfc
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -11,8 +11,6 @@
use Drupal\views\ViewStorageInterface;
use Drupal\views_ui\ViewUI;
use Drupal\views\ViewsData;
use Drupal\user\TempStore;
use Drupal\user\TempStoreFactory;
use Drupal\Core\Controller\ControllerInterface;
use Drupal\Core\Entity\EntityManager;
use Symfony\Component\DependencyInjection\ContainerInterface;
......@@ -43,13 +41,6 @@ class ViewsUIController implements ControllerInterface {
*/
protected $viewsData;
/**
* Stores the user tempstore.
*
* @var \Drupal\user\TempStore
*/
protected $tempStore;
/**
* The URL generator to use.
*
......@@ -64,15 +55,12 @@ class ViewsUIController implements ControllerInterface {
* The Entity manager.
* @param \Drupal\views\ViewsData views_data
* The Views data cache object.
* @param \Drupal\user\TempStoreFactory $temp_store_factory
* The factory for the temp store object.
* @param \Symfony\Component\Routing\Generator\UrlGeneratorInterface
* The URL generator.
*/
public function __construct(EntityManager $entity_manager, ViewsData $views_data, TempStoreFactory $temp_store_factory, UrlGeneratorInterface $url_generator) {
public function __construct(EntityManager $entity_manager, ViewsData $views_data, UrlGeneratorInterface $url_generator) {
$this->entityManager = $entity_manager;
$this->viewsData = $views_data;
$this->tempStore = $temp_store_factory->get('views');
$this->urlGenerator = $url_generator;
}
......@@ -83,7 +71,6 @@ public static function create(ContainerInterface $container) {
return new static(
$container->get('plugin.manager.entity'),
$container->get('views.views_data'),
$container->get('user.tempstore'),
$container->get('url_generator')
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment