FilterController::filterTips(FilterFormatInterface $filter_format = NULL)
Displays a page with long filter tips.
Parameters
\Drupal\filter\FilterFormatInterface|null $filter_format: (optional) A filter format, or NULL to show tips for all formats. Defaults to NULL.
Return value
array A renderable array.
See also
template_preprocess_filter_tips()
File
- core/modules/filter/src/Controller/FilterController.php, line 24
Class
- FilterController
- Controller routines for filter routes.
Namespace
Drupal\filter\Controller
Code
function filterTips(FilterFormatInterface $filter_format = NULL) {
$tips = $filter_format ? $filter_format->id() : -1;
$build = array(
'#theme' => 'filter_tips',
'#long' => TRUE,
'#tips' => _filter_tips($tips, TRUE),
);
return $build;
}
Please login to continue.