public function RelationController::pageTitle in Relation 8
The _title_callback for the entity.relation.canonical route.
Parameters
RelationInterface $relation: A relation entity.
Return value
string The page title.
1 string reference to 'RelationController::pageTitle'
File
- src/
Controller/ RelationController.php, line 39 - Contains \Drupal\relation\Controller\RelationController.
Class
- RelationController
- Returns responses for Relation routes.
Namespace
Drupal\relation\ControllerCode
public function pageTitle(RelationInterface $relation) {
return $relation
->label();
}