From 5fca5feeddac32b856c00e250e0ae4744343b0ee Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Sun, 26 Jan 2020 09:52:52 +0000 Subject: [PATCH] Issue #3108851 by JeroenT, Berdir, Wim Leers: Remove deprecated node.module action plugins and leftovers --- .../node/config/schema/node.schema.yml | 24 ------------- .../node/src/NodeAccessControlHandler.php | 8 ----- .../src/NodeAccessControlHandlerInterface.php | 21 ------------ .../node/src/Plugin/Action/DeleteNode.php | 34 ------------------- .../node/src/Plugin/Action/PublishNode.php | 33 ------------------ .../node/src/Plugin/Action/SaveNode.php | 34 ------------------- .../node/src/Plugin/Action/UnpublishNode.php | 33 ------------------ 7 files changed, 187 deletions(-) delete mode 100644 core/modules/node/src/Plugin/Action/DeleteNode.php delete mode 100644 core/modules/node/src/Plugin/Action/PublishNode.php delete mode 100644 core/modules/node/src/Plugin/Action/SaveNode.php delete mode 100644 core/modules/node/src/Plugin/Action/UnpublishNode.php diff --git a/core/modules/node/config/schema/node.schema.yml b/core/modules/node/config/schema/node.schema.yml index 2a831d7678d..862a39651a2 100644 --- a/core/modules/node/config/schema/node.schema.yml +++ b/core/modules/node/config/schema/node.schema.yml @@ -63,30 +63,6 @@ action.configuration.node_promote_action: type: action_configuration_default label: 'Promote selected content from front page configuration' -# @deprecated in Drupal 8.5.x, to be removed before Drupal 9.0.0. -# @see https://www.drupal.org/node/2919303 -action.configuration.node_publish_action: - type: action_configuration_default - label: 'Publish selected content configuration' - -# @deprecated in Drupal 8.5.x, to be removed before Drupal 9.0.0. -# @see https://www.drupal.org/node/2919303 -action.configuration.node_unpublish_action: - type: action_configuration_default - label: 'Unpublish selected content configuration' - -# @deprecated in Drupal 8.5.x, to be removed before Drupal 9.0.0. -# @see https://www.drupal.org/node/2919303 -action.configuration.node_save_action: - type: action_configuration_default - label: 'Save content configuration' - -# @deprecated in Drupal 8.6.x, to be removed before Drupal 9.0.0. -# @see https://www.drupal.org/node/2934349 -action.configuration.node_delete_action: - type: action_configuration_default - label: 'Delete content configuration' - action.configuration.node_make_sticky_action: type: action_configuration_default label: 'Make selected content sticky configuration' diff --git a/core/modules/node/src/NodeAccessControlHandler.php b/core/modules/node/src/NodeAccessControlHandler.php index b742f9c052c..3c2e8190bf1 100644 --- a/core/modules/node/src/NodeAccessControlHandler.php +++ b/core/modules/node/src/NodeAccessControlHandler.php @@ -156,14 +156,6 @@ class NodeAccessControlHandler extends EntityAccessControlHandler implements Nod return $grants; } - /** - * {@inheritdoc} - */ - public function writeGrants(NodeInterface $node, $delete = TRUE) { - $grants = $this->acquireGrants($node); - $this->grantStorage->write($node, $grants, NULL, $delete); - } - /** * {@inheritdoc} */ diff --git a/core/modules/node/src/NodeAccessControlHandlerInterface.php b/core/modules/node/src/NodeAccessControlHandlerInterface.php index 4cf84d7a7a1..588391394ee 100644 --- a/core/modules/node/src/NodeAccessControlHandlerInterface.php +++ b/core/modules/node/src/NodeAccessControlHandlerInterface.php @@ -28,27 +28,6 @@ interface NodeAccessControlHandlerInterface { */ public function acquireGrants(NodeInterface $node); - /** - * Writes a list of grants to the database, deleting any previously saved ones. - * - * Modules that use node access can use this function when doing mass updates - * due to widespread permission changes. - * - * Note: Don't call this function directly from a contributed module. Call - * \Drupal\node\NodeAccessControlHandlerInterface::acquireGrants() instead. - * - * @param \Drupal\node\NodeInterface $node - * The node whose grants are being written. - * @param $delete - * (optional) If false, does not delete records. This is only for optimization - * purposes, and assumes the caller has already performed a mass delete of - * some form. Defaults to TRUE. - * - * @deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. - * Use \Drupal\node\NodeAccessControlHandlerInterface::acquireGrants(). - */ - public function writeGrants(NodeInterface $node, $delete = TRUE); - /** * Creates the default node access grant entry on the grant storage. */ diff --git a/core/modules/node/src/Plugin/Action/DeleteNode.php b/core/modules/node/src/Plugin/Action/DeleteNode.php deleted file mode 100644 index 0213ccf51b3..00000000000 --- a/core/modules/node/src/Plugin/Action/DeleteNode.php +++ /dev/null @@ -1,34 +0,0 @@ -