function FilterController::getLabel

Same name in other branches
  1. 8.9.x core/modules/filter/src/Controller/FilterController.php \Drupal\filter\Controller\FilterController::getLabel()
  2. 10 core/modules/filter/src/Controller/FilterController.php \Drupal\filter\Controller\FilterController::getLabel()
  3. 11.x 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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.