3 namespace Drupal\comment\Plugin\Action;
5 use Drupal\Core\Action\Plugin\Action\UnpublishAction;
6 use Drupal\Core\Entity\EntityTypeManagerInterface;
9 * Unpublishes a comment.
11 * @deprecated in Drupal 8.5.x, to be removed before Drupal 9.0.0.
12 * Use \Drupal\Core\Action\Plugin\Action\UnpublishAction instead.
14 * @see \Drupal\Core\Action\Plugin\Action\UnpublishAction
15 * @see https://www.drupal.org/node/2919303
18 * id = "comment_unpublish_action",
19 * label = @Translation("Unpublish comment"),
23 class UnpublishComment extends UnpublishAction {
28 public function __construct($configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager) {
29 parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager);
30 @trigger_error(__NAMESPACE__ . '\UnpublishComment is deprecated in Drupal 8.5.x, will be removed before Drupal 9.0.0. Use \Drupal\Core\Action\Plugin\Action\UnpublishAction instead. See https://www.drupal.org/node/2919303.', E_USER_DEPRECATED);