You are here

public function FilterController::getLabel in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/filter/src/Controller/FilterController.php \Drupal\filter\Controller\FilterController::getLabel()

Gets the label of a filter format.

Parameters

\Drupal\filter\FilterFormatInterface $filter_format: The filter format.

Return value

string The label of the filter format.

1 string reference to 'FilterController::getLabel'
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 45

Class

FilterController
Controller routines for filter routes.

Namespace

Drupal\filter\Controller

Code

public function getLabel(FilterFormatInterface $filter_format) {
  return $filter_format
    ->label();
}