You are here

function hook_filter_format_disable in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/filter/filter.api.php \hook_filter_format_disable()
  2. 7 modules/filter/filter.api.php \hook_filter_format_disable()

Perform actions when a text format has been disabled.

Parameters

\Drupal\filter\FilterFormatInterface $format: The format object of the format being disabled.

Related topics

2 functions implement hook_filter_format_disable()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

filter_test_filter_format_disable in core/modules/filter/tests/filter_test/filter_test.module
Implements hook_filter_format_disable().
user_filter_format_disable in core/modules/user/user.module
Implements hook_filter_format_disable().
1 invocation of hook_filter_format_disable()
FilterFormat::disable in core/modules/filter/src/Entity/FilterFormat.php
Disables the configuration entity.

File

core/modules/filter/filter.api.php, line 54
Hooks provided by the Filter module.

Code

function hook_filter_format_disable($format) {
  mymodule_cache_rebuild();
}