Same name and namespace in other branches
- 7.x modules/filter/filter.api.php \hook_filter_info_alter()
- 8.9.x core/modules/filter/filter.api.php \hook_filter_info_alter()
- 9 core/modules/filter/filter.api.php \hook_filter_info_alter()
Perform alterations on filter definitions.
Parameters
array $info: Array of information on filters exposed by filter plugins.
Related topics
1 invocation of hook_filter_info_alter()
- FilterPluginManager::__construct in core/
modules/ filter/ src/ FilterPluginManager.php - Constructs a FilterPluginManager object.
File
- core/
modules/ filter/ filter.api.php, line 19 - Hooks provided by the Filter module.
Code
function hook_filter_info_alter(&$info) {
// Alter the default settings of the URL filter provided by core.
$info['filter_url']['default_settings'] = [
'filter_url_length' => 100,
];
}