function DisplayPluginCollection::remove

Same name in other branches
  1. 9 core/modules/views/src/DisplayPluginCollection.php \Drupal\views\DisplayPluginCollection::remove()
  2. 10 core/modules/views/src/DisplayPluginCollection.php \Drupal\views\DisplayPluginCollection::remove()
  3. 11.x core/modules/views/src/DisplayPluginCollection.php \Drupal\views\DisplayPluginCollection::remove()

Overrides LazyPluginCollection::remove

File

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

Class

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

Namespace

Drupal\views

Code

public function remove($instance_id) {
    $this->get($instance_id)
        ->remove();
    parent::remove($instance_id);
}

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