function FilterFormat::removeFilter

Same name in other branches
  1. 9 core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::removeFilter()
  2. 8.9.x core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::removeFilter()
  3. 11.x core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::removeFilter()

Overrides FilterFormatInterface::removeFilter

1 call to FilterFormat::removeFilter()
FilterFormat::onDependencyRemoval in core/modules/filter/src/Entity/FilterFormat.php
Informs the entity that entities it depends on will be deleted.

File

core/modules/filter/src/Entity/FilterFormat.php, line 395

Class

FilterFormat
Represents a text format.

Namespace

Drupal\filter\Entity

Code

public function removeFilter($instance_id) {
    unset($this->filters[$instance_id]);
    $this->filterCollection
        ->removeInstanceId($instance_id);
}

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