function template_preprocess_filter_guidelines

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!filter!filter.module/function/template_preprocess_filter_guidelines/8.1.x