invalidation cache for corpus bugfix

This commit is contained in:
Bachir Soussi Chiadmi
2018-04-04 19:52:03 +02:00
parent 6811f6e586
commit 5b8efe29f2
@@ -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);
}