public FilterFormat::removeFilter($instance_id)
Removes a filter.
Parameters
string $instance_id: The ID of a filter plugin to be removed.
Overrides FilterFormatInterface::removeFilter
File
- core/modules/filter/src/Entity/FilterFormat.php, line 400
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); }
Please login to continue.