3 namespace Drupal\comment\Plugin\Action;
5 use Drupal\Component\Datetime\TimeInterface;
6 use Drupal\Core\Action\Plugin\Action\SaveAction;
7 use Drupal\Core\Entity\EntityTypeManagerInterface;
12 * @deprecated in Drupal 8.5.x, to be removed before Drupal 9.0.0.
13 * Use \Drupal\Core\Action\Plugin\Action\SaveAction instead.
15 * @see \Drupal\Core\Action\Plugin\Action\SaveAction
16 * @see https://www.drupal.org/node/2919303
19 * id = "comment_save_action",
20 * label = @Translation("Save comment"),
24 class SaveComment extends SaveAction {
29 public function __construct($configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, TimeInterface $time) {
30 parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $time);
31 @trigger_error(__NAMESPACE__ . '\SaveComment is deprecated in Drupal 8.5.x, will be removed before Drupal 9.0.0. Use \Drupal\Core\Action\Plugin\Action\SaveAction instead. See https://www.drupal.org/node/2919303.', E_USER_DEPRECATED);