3 namespace Drupal\comment\Plugin\Action;
5 use Drupal\Core\Action\Plugin\Action\PublishAction;
6 use Drupal\Core\Entity\EntityTypeManagerInterface;
11 * @deprecated in Drupal 8.5.x, to be removed before Drupal 9.0.0.
12 * Use \Drupal\Core\Action\Plugin\Action\PublishAction instead.
14 * @see \Drupal\Core\Action\Plugin\Action\PublishAction
15 * @see https://www.drupal.org/node/2919303
18 * id = "comment_publish_action",
19 * label = @Translation("Publish comment"),
23 class PublishComment extends PublishAction {
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__ . '\PublishComment is deprecated in Drupal 8.5.x, will be removed before Drupal 9.0.0. Use \Drupal\Core\Action\Plugin\Action\PublishAction instead. See https://www.drupal.org/node/2919303.', E_USER_DEPRECATED);