function FilterController::filterTips
Same name in other branches
- 9 core/modules/filter/src/Controller/FilterController.php \Drupal\filter\Controller\FilterController::filterTips()
- 8.9.x core/modules/filter/src/Controller/FilterController.php \Drupal\filter\Controller\FilterController::filterTips()
- 11.x core/modules/filter/src/Controller/FilterController.php \Drupal\filter\Controller\FilterController::filterTips()
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()
1 string reference to 'FilterController::filterTips'
- filter.routing.yml in core/
modules/ filter/ filter.routing.yml - core/modules/filter/filter.routing.yml
File
-
core/
modules/ filter/ src/ Controller/ FilterController.php, line 24
Class
- FilterController
- Controller routines for filter routes.
Namespace
Drupal\filter\ControllerCode
public function filterTips(?FilterFormatInterface $filter_format = NULL) {
$tips = $filter_format ? $filter_format->id() : -1;
$build = [
'#theme' => 'filter_tips',
'#long' => TRUE,
'#tips' => _filter_tips($tips, TRUE),
];
return $build;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.