public function DisplayPluginCollection::clear in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/src/DisplayPluginCollection.php \Drupal\views\DisplayPluginCollection::clear()
Clears all instantiated plugins.
Overrides LazyPluginCollection::clear
1 call to DisplayPluginCollection::clear()
- DisplayPluginCollection::__destruct in core/
modules/ views/ src/ DisplayPluginCollection.php - Destructs a DisplayPluginCollection object.
File
- core/
modules/ views/ src/ DisplayPluginCollection.php, line 60
Class
- DisplayPluginCollection
- A class which wraps the displays of a view so you can lazy-initialize them.
Namespace
Drupal\viewsCode
public function clear() {
foreach (array_filter($this->pluginInstances) as $display) {
$display
->destroy();
}
parent::clear();
}