function hook_filter_format_disable

Same name and namespace in other branches
  1. 10 core/modules/filter/filter.api.php \hook_filter_format_disable()
  2. 9 core/modules/filter/filter.api.php \hook_filter_format_disable()
  3. 8.9.x core/modules/filter/filter.api.php \hook_filter_format_disable()
  4. 7.x modules/filter/filter.api.php \hook_filter_format_disable()
  5. main core/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: the procedural functions in this list are found by pattern matching, so the list may include some functions that are not actually implementations of this hook.

FilterTestHooks::filterFormatDisable in core/modules/filter/tests/filter_test/src/Hook/FilterTestHooks.php
Implements hook_filter_format_disable().
UserHooks::filterFormatDisable in core/modules/user/src/Hook/UserHooks.php
Implements hook_filter_format_disable().
1 invocation of hook_filter_format_disable()
FilterFormat::disable in core/modules/filter/src/Entity/FilterFormat.php
#[ActionMethod(adminLabel: new TranslatableMarkup('Disable'), pluralize: FALSE)]

File

core/modules/filter/filter.api.php, line 56

Code

function hook_filter_format_disable($format) : void {
  my_module_cache_rebuild();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.