3 namespace Drupal\node\Plugin\Action;
5 use Drupal\Component\Datetime\TimeInterface;
6 use Drupal\Core\Action\Plugin\Action\SaveAction;
7 use Drupal\Core\Entity\EntityTypeManagerInterface;
10 * Provides an action that can save any entity.
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 = "node_save_action",
20 * label = @Translation("Save content"),
24 class SaveNode 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__ . '\SaveNode 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);