Mercurial > hg > isophonics-drupal-site
comparison core/modules/node/src/Form/DeleteMultiple.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 | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
4 | 4 |
5 use Drupal\Core\Entity\EntityManagerInterface; | 5 use Drupal\Core\Entity\EntityManagerInterface; |
6 use Drupal\Core\Form\ConfirmFormBase; | 6 use Drupal\Core\Form\ConfirmFormBase; |
7 use Drupal\Core\Form\FormStateInterface; | 7 use Drupal\Core\Form\FormStateInterface; |
8 use Drupal\Core\Url; | 8 use Drupal\Core\Url; |
9 use Drupal\user\PrivateTempStoreFactory; | 9 use Drupal\Core\TempStore\PrivateTempStoreFactory; |
10 use Symfony\Component\DependencyInjection\ContainerInterface; | 10 use Symfony\Component\DependencyInjection\ContainerInterface; |
11 use Symfony\Component\HttpFoundation\RedirectResponse; | 11 use Symfony\Component\HttpFoundation\RedirectResponse; |
12 | 12 |
13 /** | 13 /** |
14 * Provides a node deletion confirmation form. | 14 * Provides a node deletion confirmation form. |
15 * | |
16 * @internal | |
15 */ | 17 */ |
16 class DeleteMultiple extends ConfirmFormBase { | 18 class DeleteMultiple extends ConfirmFormBase { |
17 | 19 |
18 /** | 20 /** |
19 * The array of nodes to delete. | 21 * The array of nodes to delete. |
23 protected $nodeInfo = []; | 25 protected $nodeInfo = []; |
24 | 26 |
25 /** | 27 /** |
26 * The tempstore factory. | 28 * The tempstore factory. |
27 * | 29 * |
28 * @var \Drupal\user\PrivateTempStoreFactory | 30 * @var \Drupal\Core\TempStore\PrivateTempStoreFactory |
29 */ | 31 */ |
30 protected $tempStoreFactory; | 32 protected $tempStoreFactory; |
31 | 33 |
32 /** | 34 /** |
33 * The node storage. | 35 * The node storage. |
34 * | 36 * |
35 * @var \Drupal\Core\Entity\EntityStorageInterface | 37 * @var \Drupal\Core\Entity\EntityStorageInterface |
36 */ | 38 */ |
37 protected $manager; | 39 protected $storage; |
38 | 40 |
39 /** | 41 /** |
40 * Constructs a DeleteMultiple form object. | 42 * Constructs a DeleteMultiple form object. |
41 * | 43 * |
42 * @param \Drupal\user\PrivateTempStoreFactory $temp_store_factory | 44 * @param \Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory |
43 * The tempstore factory. | 45 * The tempstore factory. |
44 * @param \Drupal\Core\Entity\EntityManagerInterface $manager | 46 * @param \Drupal\Core\Entity\EntityManagerInterface $manager |
45 * The entity manager. | 47 * The entity manager. |
46 */ | 48 */ |
47 public function __construct(PrivateTempStoreFactory $temp_store_factory, EntityManagerInterface $manager) { | 49 public function __construct(PrivateTempStoreFactory $temp_store_factory, EntityManagerInterface $manager) { |
52 /** | 54 /** |
53 * {@inheritdoc} | 55 * {@inheritdoc} |
54 */ | 56 */ |
55 public static function create(ContainerInterface $container) { | 57 public static function create(ContainerInterface $container) { |
56 return new static( | 58 return new static( |
57 $container->get('user.private_tempstore'), | 59 $container->get('tempstore.private'), |
58 $container->get('entity.manager') | 60 $container->get('entity.manager') |
59 ); | 61 ); |
60 } | 62 } |
61 | 63 |
62 /** | 64 /** |