function PluginBase::destroy

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::destroy()
  2. 8.9.x core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::destroy()
  3. 10 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::destroy()

Overrides ViewsPluginInterface::destroy

2 calls to PluginBase::destroy()
DisplayPluginBase::destroy in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Clears a plugin.
StylePluginBase::destroy in core/modules/views/src/Plugin/views/style/StylePluginBase.php
Clears a plugin.
2 methods override PluginBase::destroy()
DisplayPluginBase::destroy in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Clears a plugin.
StylePluginBase::destroy in core/modules/views/src/Plugin/views/style/StylePluginBase.php
Clears a plugin.

File

core/modules/views/src/Plugin/views/PluginBase.php, line 263

Class

PluginBase
Base class for any views plugin types.

Namespace

Drupal\views\Plugin\views

Code

public function destroy() {
    unset($this->view, $this->display, $this->query);
}

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