d9eea0c921de624a723220a977e0985bdfec104f
[yaffs-website] / web / core / modules / node / src / Plugin / Action / SaveNode.php
1 <?php
2
3 namespace Drupal\node\Plugin\Action;
4
5 use Drupal\Component\Datetime\TimeInterface;
6 use Drupal\Core\Action\Plugin\Action\SaveAction;
7 use Drupal\Core\Entity\EntityTypeManagerInterface;
8
9 /**
10  * Provides an action that can save any entity.
11  *
12  * @deprecated in Drupal 8.5.x, to be removed before Drupal 9.0.0.
13  *   Use \Drupal\Core\Action\Plugin\Action\SaveAction instead.
14  *
15  * @see \Drupal\Core\Action\Plugin\Action\SaveAction
16  * @see https://www.drupal.org/node/2919303
17  *
18  * @Action(
19  *   id = "node_save_action",
20  *   label = @Translation("Save content"),
21  *   type = "node"
22  * )
23  */
24 class SaveNode extends SaveAction {
25
26   /**
27    * {@inheritdoc}
28    */
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);
32   }
33
34 }