FilterController.php
Same filename and directory in other branches
Namespace
Drupal\filter\ControllerFile
-
core/
modules/ filter/ src/ Controller/ FilterController.php
View source
<?php
namespace Drupal\filter\Controller;
use Drupal\filter\FilterFormatInterface;
/**
* Controller routines for filter routes.
*/
class FilterController {
/**
* Gets the label of a filter format.
*
* @param \Drupal\filter\FilterFormatInterface $filter_format
* The filter format.
*
* @return string
* The label of the filter format.
*/
public function getLabel(FilterFormatInterface $filter_format) {
return $filter_format->label();
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| FilterController | Controller routines for filter routes. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.