function Block::postSaveView

Same name and namespace in other branches
  1. 11.x core/modules/views/src/Plugin/views/display/Block.php \Drupal\views\Plugin\views\display\Block::postSaveView()

File

core/modules/views/src/Plugin/views/display/Block.php, line 393

Class

Block
The plugin that handles a block.

Namespace

Drupal\views\Plugin\views\display

Code

public function postSaveView(PostSaveProcess $postSaveProcess, ?DisplayPluginInterface $original_display = NULL) : void {
  if ($this->blockManager instanceof CachedDiscoveryInterface) {
    $postSaveProcess->addDiscoveryToClear($this->blockManager);
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.