annotate core/modules/comment/src/Plugin/Action/DeleteComment.php @ 5:12f9dff5fda9
tip
Update to Drupal core 8.7.1
author |
Chris Cannam |
date |
Thu, 09 May 2019 15:34:47 +0100 |
parents |
a9cd425dd02b |
children |
|
rev |
line source |
Chris@0
|
1 <?php
|
Chris@0
|
2
|
Chris@0
|
3 namespace Drupal\comment\Plugin\Action;
|
Chris@0
|
4
|
Chris@4
|
5 use Drupal\Core\Action\Plugin\Action\DeleteAction;
|
Chris@4
|
6 use Drupal\Core\Entity\EntityTypeManagerInterface;
|
Chris@0
|
7 use Drupal\Core\Session\AccountInterface;
|
Chris@0
|
8 use Drupal\Core\TempStore\PrivateTempStoreFactory;
|
Chris@0
|
9
|
Chris@0
|
10 /**
|
Chris@0
|
11 * Deletes a comment.
|
Chris@0
|
12 *
|
Chris@4
|
13 * @deprecated in Drupal 8.6.x, to be removed before Drupal 9.0.0.
|
Chris@4
|
14 * Use \Drupal\Core\Action\Plugin\Action\DeleteAction instead.
|
Chris@4
|
15 *
|
Chris@4
|
16 * @see \Drupal\Core\Action\Plugin\Action\DeleteAction
|
Chris@4
|
17 * @see https://www.drupal.org/node/2934349
|
Chris@4
|
18 *
|
Chris@0
|
19 * @Action(
|
Chris@0
|
20 * id = "comment_delete_action",
|
Chris@4
|
21 * label = @Translation("Delete comment")
|
Chris@0
|
22 * )
|
Chris@0
|
23 */
|
Chris@4
|
24 class DeleteComment extends DeleteAction {
|
Chris@0
|
25
|
Chris@0
|
26 /**
|
Chris@0
|
27 * {@inheritdoc}
|
Chris@0
|
28 */
|
Chris@4
|
29 public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, PrivateTempStoreFactory $temp_store_factory, AccountInterface $current_user) {
|
Chris@4
|
30 parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $temp_store_factory, $current_user);
|
Chris@4
|
31 @trigger_error(__NAMESPACE__ . '\DeleteComment is deprecated in Drupal 8.6.x, will be removed before Drupal 9.0.0. Use \Drupal\Core\Action\Plugin\Action\DeleteAction instead. See https://www.drupal.org/node/2934349.', E_USER_DEPRECATED);
|
Chris@0
|
32 }
|
Chris@0
|
33
|
Chris@0
|
34 }
|