You are here

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'
relation.routing.yml in ./relation.routing.yml
relation.routing.yml

File

src/Controller/RelationController.php, line 39
Contains \Drupal\relation\Controller\RelationController.

Class

RelationController
Returns responses for Relation routes.

Namespace

Drupal\relation\Controller

Code

public function pageTitle(RelationInterface $relation) {
  return $relation
    ->label();
}