function View::postSave
Same name in other branches
- 9 core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::postSave()
- 8.9.x core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::postSave()
- 11.x core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::postSave()
Overrides EntityBase::postSave
File
-
core/
modules/ views/ src/ Entity/ View.php, line 348
Class
- View
- Defines a View configuration entity class.
Namespace
Drupal\views\EntityCode
public function postSave(EntityStorageInterface $storage, $update = TRUE) {
parent::postSave($storage, $update);
// @todo Remove if views implements a view_builder controller.
views_invalidate_cache();
$this->invalidateCaches();
// Rebuild the router if this is a new view, or its status changed.
if (!isset($this->original) || $this->status() != $this->original
->status()) {
\Drupal::service('router.builder')->setRebuildNeeded();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.