public function FilterFormat::disable

Implements \Drupal\Core\Config\Entity\ConfigEntityInterface::disable().

Overrides ConfigEntityBase::disable

File

drupal/core/modules/filter/lib/Drupal/filter/Plugin/Core/Entity/FilterFormat.php, line 169
Contains \Drupal\filter\Plugin\Core\Entity\FilterFormat.

Class

FilterFormat
Represents a text format.

Namespace

Drupal\filter\Plugin\Core\Entity

Code

public function disable() {
  parent::disable();

  // Allow modules to react on text format deletion.
  module_invoke_all('filter_format_disable', $this);

  // Clear the filter cache whenever a text format is disabled.
  filter_formats_reset();
  cache('filter')
    ->deleteTags(array(
    'filter_format' => $this->format,
  ));
  return $this;
}