فهرست منبع

invalidation cache for corpus bugfix

Bachir Soussi Chiadmi 6 سال پیش
والد
کامیت
5b8efe29f2
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      sites/all/modules/figli/edlp_corpus/edlp_corpus.module

+ 4 - 2
sites/all/modules/figli/edlp_corpus/edlp_corpus.module

@@ -10,6 +10,8 @@
 use Drupal\Core\Entity\EntityInterface;
 use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
 use Drupal\Core\Url;
+use Drupal\workflow\Entity\WorkflowManager;
+
 
 /**
  * Implements hook_theme().
@@ -175,7 +177,7 @@ function edlp_corpus_node_create(EntityInterface $node) {
  * @see hook_entity_update()
  */
 function edlp_corpus_node_update(EntityInterface $node) {
-  _edlp_corpus_invalidate_corpus_cache();
+  _edlp_corpus_invalidate_corpus_cache($node);
 }
 /**
  * Respond to entity deletion.
@@ -186,5 +188,5 @@ function edlp_corpus_node_update(EntityInterface $node) {
  * @see hook_ENTITY_TYPE_delete()
  */
 function edlp_corpus_node_delete(EntityInterface $node) {
-  _edlp_corpus_invalidate_corpus_cache();
+  _edlp_corpus_invalidate_corpus_cache($node);
 }