template_preprocess_filter_guidelines(&$variables)
Prepares variables for text format guideline templates.
Default template: filter-guidelines.html.twig.
Parameters
array $variables: An associative array containing:
- format: An object representing a text format.
File
- core/modules/filter/filter.module, line 373
- Framework for handling the filtering of content.
Code
function template_preprocess_filter_guidelines(&$variables) { $format = $variables['format']; $variables['tips'] = array( '#theme' => 'filter_tips', '#tips' => _filter_tips($format->id(), FALSE), ); }
Please login to continue.