class PostSaveProcess
Defines the post save process value object.
Hierarchy
- class \Drupal\views\PostSaveProcess
Expanded class hierarchy of PostSaveProcess
5 files declare their use of PostSaveProcess
- Block.php in core/
modules/ views/ src/ Plugin/ views/ display/ Block.php - PathPluginBase.php in core/
modules/ views/ src/ Plugin/ views/ display/ PathPluginBase.php - PostSaveProcessTest.php in core/
modules/ views/ tests/ src/ Unit/ PostSaveProcessTest.php - Serializer.php in core/
modules/ rest/ src/ Plugin/ views/ style/ Serializer.php - View.php in core/
modules/ views/ src/ Entity/ View.php
File
-
core/
modules/ views/ src/ PostSaveProcess.php, line 10
Namespace
Drupal\viewsView source
class PostSaveProcess {
/**
* TRUE once one plugin flags that the router needs rebuilding.
*/
protected bool $routerRebuild = FALSE;
/**
* Plugin managers queued to have their cached definitions cleared.
*
* @var \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface[]
*/
protected array $discoveriesToClear = [];
/**
* Sets routerRebuild to true.
*/
public function setRouterRebuild() : void {
$this->routerRebuild = TRUE;
}
/**
* Does the router need rebuilding?
*/
public function needsRouterRebuild() : bool {
return $this->routerRebuild;
}
/**
* Queues a plugin manager to have its cached definitions cleared.
*
* @param \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface $discovery
* The plugin manager (or other discovery) to clear.
*/
public function addDiscoveryToClear(CachedDiscoveryInterface $discovery) : void {
$this->discoveriesToClear[get_class($discovery)] = $discovery;
}
/**
* Gets all plugin managers queued to have their caches cleared.
*
* @return \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface[]
* The queued discoveries, keyed by class name.
*/
public function getDiscoveriesToClear() : array {
return $this->discoveriesToClear;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.