function DisplayPluginCollection::__destruct

Same name in other branches
  1. 9 core/modules/views/src/DisplayPluginCollection.php \Drupal\views\DisplayPluginCollection::__destruct()
  2. 8.9.x core/modules/views/src/DisplayPluginCollection.php \Drupal\views\DisplayPluginCollection::__destruct()
  3. 10 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();
}

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