function FilterFormat::removeFilter
Same name in other branches
- 9 core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::removeFilter()
- 8.9.x core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::removeFilter()
- 10 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 398
Class
- FilterFormat
- Represents a text format.
Namespace
Drupal\filter\EntityCode
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.