You are here

public function DisplayPluginCollection::__destruct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/DisplayPluginCollection.php \Drupal\views\DisplayPluginCollection::__destruct()

Destructs a DisplayPluginCollection object.

File

core/modules/views/src/DisplayPluginCollection.php, line 44

Class

DisplayPluginCollection
A class which wraps the displays of a view so you can lazy-initialize them.

Namespace

Drupal\views

Code

public function __destruct() {
  $this
    ->clear();
}