You are here

function template_preprocess_filter_guidelines in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/filter/filter.module \template_preprocess_filter_guidelines()

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 374
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),
  );
}