function View::postSave
Overrides EntityBase::postSave
File
- 
              core/
modules/ views/ src/ Entity/ View.php, line 347  
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.