public function FacetController::pageTitle in Facets 8
Returns the page title for an facets's "View" tab.
Parameters
\Drupal\facets\FacetInterface $facet: The facet that is displayed.
Return value
string The page title.
File
- src/
Controller/ FacetController.php, line 39
Class
- FacetController
- Provides route responses for facets.
Namespace
Drupal\facets\ControllerCode
public function pageTitle(FacetInterface $facet) {
return new FormattableMarkup('@title', [
'@title' => $facet
->label(),
]);
}