FilterFormat::removeFilter

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);
}
doc_Drupal
2016-10-29 09:14:33
Comments
Leave a Comment

Please login to continue.