diff --git a/core/modules/node/lib/Drupal/node/Plugin/Action/AssignOwnerNode.php b/core/modules/node/lib/Drupal/node/Plugin/Action/AssignOwnerNode.php index 94d85de..17ea73c 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Action/AssignOwnerNode.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Action/AssignOwnerNode.php @@ -69,6 +69,13 @@ public function execute($entity = NULL) { /** * {@inheritdoc} */ + public function postExecute() { + Cache::invalidateTags(array('content' => TRUE)); + } + + /** + * {@inheritdoc} + */ protected function getDefaultConfiguration() { return array( 'owner_uid' => '', diff --git a/core/modules/node/lib/Drupal/node/Plugin/Action/DeleteNode.php b/core/modules/node/lib/Drupal/node/Plugin/Action/DeleteNode.php index 0f2a3c3..3adf70d 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Action/DeleteNode.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Action/DeleteNode.php @@ -72,4 +72,11 @@ public function execute($object = NULL) { $this->executeMultiple(array($object)); } + /** + * {@inheritdoc} + */ + public function postExecute() { + Cache::invalidateTags(array('content' => TRUE)); + } + } diff --git a/core/modules/node/lib/Drupal/node/Plugin/Action/DemoteNode.php b/core/modules/node/lib/Drupal/node/Plugin/Action/DemoteNode.php index 7676a76..14cc4ca 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Action/DemoteNode.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Action/DemoteNode.php @@ -30,4 +30,11 @@ public function execute($entity = NULL) { $entity->save(); } + /** + * {@inheritdoc} + */ + public function postExecute() { + Cache::invalidateTags(array('content' => TRUE)); + } + } diff --git a/core/modules/node/lib/Drupal/node/Plugin/Action/PromoteNode.php b/core/modules/node/lib/Drupal/node/Plugin/Action/PromoteNode.php index 56f8658..d4753b2 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Action/PromoteNode.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Action/PromoteNode.php @@ -31,4 +31,11 @@ public function execute($entity = NULL) { $entity->save(); } + /** + * {@inheritdoc} + */ + public function postExecute() { + Cache::invalidateTags(array('content' => TRUE)); + } + } diff --git a/core/modules/node/lib/Drupal/node/Plugin/Action/PublishNode.php b/core/modules/node/lib/Drupal/node/Plugin/Action/PublishNode.php index 132e045..c3f7c4c 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Action/PublishNode.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Action/PublishNode.php @@ -30,4 +30,11 @@ public function execute($entity = NULL) { $entity->save(); } + /** + * {@inheritdoc} + */ + public function postExecute() { + Cache::invalidateTags(array('content' => TRUE)); + } + } diff --git a/core/modules/node/lib/Drupal/node/Plugin/Action/SaveNode.php b/core/modules/node/lib/Drupal/node/Plugin/Action/SaveNode.php index d374afc..aead421 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Action/SaveNode.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Action/SaveNode.php @@ -29,4 +29,11 @@ public function execute($entity = NULL) { $entity->save(); } + /** + * {@inheritdoc} + */ + public function postExecute() { + Cache::invalidateTags(array('content' => TRUE)); + } + } diff --git a/core/modules/node/lib/Drupal/node/Plugin/Action/StickyNode.php b/core/modules/node/lib/Drupal/node/Plugin/Action/StickyNode.php index a170067..de8a4ed 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Action/StickyNode.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Action/StickyNode.php @@ -31,4 +31,11 @@ public function execute($entity = NULL) { $entity->save(); } + /** + * {@inheritdoc} + */ + public function postExecute() { + Cache::invalidateTags(array('content' => TRUE)); + } + } diff --git a/core/modules/node/lib/Drupal/node/Plugin/Action/UnpublishByKeywordNode.php b/core/modules/node/lib/Drupal/node/Plugin/Action/UnpublishByKeywordNode.php index 2d0f4ed..639c742 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Action/UnpublishByKeywordNode.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Action/UnpublishByKeywordNode.php @@ -39,6 +39,13 @@ public function execute($node = NULL) { /** * {@inheritdoc} */ + public function postExecute() { + Cache::invalidateTags(array('content' => TRUE)); + } + + /** + * {@inheritdoc} + */ protected function getDefaultConfiguration() { return array( 'keywords' => array(), diff --git a/core/modules/node/lib/Drupal/node/Plugin/Action/UnpublishNode.php b/core/modules/node/lib/Drupal/node/Plugin/Action/UnpublishNode.php index 968404f..dfdcd89 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Action/UnpublishNode.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Action/UnpublishNode.php @@ -30,4 +30,11 @@ public function execute($entity = NULL) { $entity->save(); } + /** + * {@inheritdoc} + */ + public function postExecute() { + Cache::invalidateTags(array('content' => TRUE)); + } + } diff --git a/core/modules/node/lib/Drupal/node/Plugin/Action/UnstickyNode.php b/core/modules/node/lib/Drupal/node/Plugin/Action/UnstickyNode.php index ea93058..a1fa52d 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Action/UnstickyNode.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Action/UnstickyNode.php @@ -30,4 +30,11 @@ public function execute($entity = NULL) { $entity->save(); } + /** + * {@inheritdoc} + */ + public function postExecute() { + Cache::invalidateTags(array('content' => TRUE)); + } + } diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/field/NodeBulkForm.php b/core/modules/node/lib/Drupal/node/Plugin/views/field/NodeBulkForm.php index 68441f6..441beb6 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/field/NodeBulkForm.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/field/NodeBulkForm.php @@ -41,14 +41,4 @@ public function views_form_validate(&$form, &$form_state) { } } - /** - * {@inheritdoc} - */ - public function views_form_submit(&$form, &$form_state) { - parent::views_form_submit($form, $form_state); - if ($form_state['step'] == 'views_form_views_form') { - Cache::invalidateTags(array('content' => TRUE)); - } - } - }