Mercurial > hg > isophonics-drupal-site
annotate core/modules/comment/src/Plugin/Action/DeleteComment.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 129ea1e6d783 |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 namespace Drupal\comment\Plugin\Action; |
Chris@0 | 4 |
Chris@17 | 5 use Drupal\Core\Action\Plugin\Action\DeleteAction; |
Chris@17 | 6 use Drupal\Core\Entity\EntityTypeManagerInterface; |
Chris@0 | 7 use Drupal\Core\Session\AccountInterface; |
Chris@14 | 8 use Drupal\Core\TempStore\PrivateTempStoreFactory; |
Chris@0 | 9 |
Chris@0 | 10 /** |
Chris@0 | 11 * Deletes a comment. |
Chris@0 | 12 * |
Chris@17 | 13 * @deprecated in Drupal 8.6.x, to be removed before Drupal 9.0.0. |
Chris@17 | 14 * Use \Drupal\Core\Action\Plugin\Action\DeleteAction instead. |
Chris@17 | 15 * |
Chris@17 | 16 * @see \Drupal\Core\Action\Plugin\Action\DeleteAction |
Chris@17 | 17 * @see https://www.drupal.org/node/2934349 |
Chris@17 | 18 * |
Chris@0 | 19 * @Action( |
Chris@0 | 20 * id = "comment_delete_action", |
Chris@17 | 21 * label = @Translation("Delete comment") |
Chris@0 | 22 * ) |
Chris@0 | 23 */ |
Chris@17 | 24 class DeleteComment extends DeleteAction { |
Chris@0 | 25 |
Chris@0 | 26 /** |
Chris@0 | 27 * {@inheritdoc} |
Chris@0 | 28 */ |
Chris@17 | 29 public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, PrivateTempStoreFactory $temp_store_factory, AccountInterface $current_user) { |
Chris@17 | 30 parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $temp_store_factory, $current_user); |
Chris@17 | 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 } |