Mercurial > hg > isophonics-drupal-site
comparison core/modules/comment/src/Form/ConfirmDeleteMultiple.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 |
---|---|
1 <?php | 1 <?php |
2 | 2 |
3 namespace Drupal\comment\Form; | 3 namespace Drupal\comment\Form; |
4 | 4 |
5 use Drupal\comment\CommentStorageInterface; | 5 use Drupal\comment\CommentStorageInterface; |
6 use Drupal\user\PrivateTempStoreFactory; | 6 use Drupal\Core\TempStore\PrivateTempStoreFactory; |
7 use Drupal\Core\Form\ConfirmFormBase; | 7 use Drupal\Core\Form\ConfirmFormBase; |
8 use Drupal\Core\Form\FormStateInterface; | 8 use Drupal\Core\Form\FormStateInterface; |
9 use Drupal\Core\Url; | 9 use Drupal\Core\Url; |
10 use Symfony\Component\DependencyInjection\ContainerInterface; | 10 use Symfony\Component\DependencyInjection\ContainerInterface; |
11 | 11 |
12 /** | 12 /** |
13 * Provides the comment multiple delete confirmation form. | 13 * Provides the comment multiple delete confirmation form. |
14 * | |
15 * @internal | |
14 */ | 16 */ |
15 class ConfirmDeleteMultiple extends ConfirmFormBase { | 17 class ConfirmDeleteMultiple extends ConfirmFormBase { |
16 | 18 |
17 /** | 19 /** |
18 * The tempstore factory. | 20 * The tempstore factory. |
19 * | 21 * |
20 * @var \Drupal\user\PrivateTempStoreFactory | 22 * @var \Drupal\Core\TempStore\PrivateTempStoreFactory |
21 */ | 23 */ |
22 protected $tempStoreFactory; | 24 protected $tempStoreFactory; |
23 | 25 |
24 /** | 26 /** |
25 * The comment storage. | 27 * The comment storage. |
38 /** | 40 /** |
39 * Creates an new ConfirmDeleteMultiple form. | 41 * Creates an new ConfirmDeleteMultiple form. |
40 * | 42 * |
41 * @param \Drupal\comment\CommentStorageInterface $comment_storage | 43 * @param \Drupal\comment\CommentStorageInterface $comment_storage |
42 * The comment storage. | 44 * The comment storage. |
43 * @param \Drupal\user\PrivateTempStoreFactory $temp_store_factory | 45 * @param \Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory |
44 * The tempstore factory. | 46 * The tempstore factory. |
45 */ | 47 */ |
46 public function __construct(CommentStorageInterface $comment_storage, PrivateTempStoreFactory $temp_store_factory) { | 48 public function __construct(CommentStorageInterface $comment_storage, PrivateTempStoreFactory $temp_store_factory) { |
47 $this->commentStorage = $comment_storage; | 49 $this->commentStorage = $comment_storage; |
48 $this->tempStoreFactory = $temp_store_factory; | 50 $this->tempStoreFactory = $temp_store_factory; |
52 * {@inheritdoc} | 54 * {@inheritdoc} |
53 */ | 55 */ |
54 public static function create(ContainerInterface $container) { | 56 public static function create(ContainerInterface $container) { |
55 return new static( | 57 return new static( |
56 $container->get('entity.manager')->getStorage('comment'), | 58 $container->get('entity.manager')->getStorage('comment'), |
57 $container->get('user.private_tempstore') | 59 $container->get('tempstore.private') |
58 ); | 60 ); |
59 } | 61 } |
60 | 62 |
61 /** | 63 /** |
62 * {@inheritdoc} | 64 * {@inheritdoc} |