Mercurial > hg > isophonics-drupal-site
comparison core/modules/views_ui/src/ParamConverter/ViewUIConverter.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
6 use Drupal\Core\Entity\EntityManagerInterface; | 6 use Drupal\Core\Entity\EntityManagerInterface; |
7 use Drupal\Core\ParamConverter\AdminPathConfigEntityConverter; | 7 use Drupal\Core\ParamConverter\AdminPathConfigEntityConverter; |
8 use Drupal\Core\Routing\AdminContext; | 8 use Drupal\Core\Routing\AdminContext; |
9 use Symfony\Component\Routing\Route; | 9 use Symfony\Component\Routing\Route; |
10 use Drupal\Core\ParamConverter\ParamConverterInterface; | 10 use Drupal\Core\ParamConverter\ParamConverterInterface; |
11 use Drupal\user\SharedTempStoreFactory; | 11 use Drupal\Core\TempStore\SharedTempStoreFactory; |
12 use Drupal\views_ui\ViewUI; | 12 use Drupal\views_ui\ViewUI; |
13 | 13 |
14 /** | 14 /** |
15 * Provides upcasting for a view entity to be used in the Views UI. | 15 * Provides upcasting for a view entity to be used in the Views UI. |
16 * | 16 * |
30 class ViewUIConverter extends AdminPathConfigEntityConverter implements ParamConverterInterface { | 30 class ViewUIConverter extends AdminPathConfigEntityConverter implements ParamConverterInterface { |
31 | 31 |
32 /** | 32 /** |
33 * Stores the tempstore factory. | 33 * Stores the tempstore factory. |
34 * | 34 * |
35 * @var \Drupal\user\SharedTempStoreFactory | 35 * @var \Drupal\Core\TempStore\SharedTempStoreFactory |
36 */ | 36 */ |
37 protected $tempStoreFactory; | 37 protected $tempStoreFactory; |
38 | 38 |
39 /** | 39 /** |
40 * Constructs a new ViewUIConverter. | 40 * Constructs a new ViewUIConverter. |
41 * | 41 * |
42 * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager | 42 * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager |
43 * The entity manager. | 43 * The entity manager. |
44 * @param \Drupal\user\SharedTempStoreFactory $temp_store_factory | 44 * @param \Drupal\Core\TempStore\SharedTempStoreFactory $temp_store_factory |
45 * The factory for the temp store object. | 45 * The factory for the temp store object. |
46 */ | 46 */ |
47 public function __construct(EntityManagerInterface $entity_manager, SharedTempStoreFactory $temp_store_factory, ConfigFactoryInterface $config_factory = NULL, AdminContext $admin_context = NULL) { | 47 public function __construct(EntityManagerInterface $entity_manager, SharedTempStoreFactory $temp_store_factory, ConfigFactoryInterface $config_factory = NULL, AdminContext $admin_context = NULL) { |
48 // The config factory and admin context are new arguments due to changing | 48 // The config factory and admin context are new arguments due to changing |
49 // the parent. Avoid an error on updated sites by falling back to getting | 49 // the parent. Avoid an error on updated sites by falling back to getting |