You are here

public function LocalTaskUsageController::getTitleLocalTask in Entity Usage 8.2

Same name and namespace in other branches
  1. 8.4 src/Controller/LocalTaskUsageController.php \Drupal\entity_usage\Controller\LocalTaskUsageController::getTitleLocalTask()
  2. 8 src/Controller/LocalTaskUsageController.php \Drupal\entity_usage\Controller\LocalTaskUsageController::getTitleLocalTask()
  3. 8.3 src/Controller/LocalTaskUsageController.php \Drupal\entity_usage\Controller\LocalTaskUsageController::getTitleLocalTask()

Title page callback.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: A RouteMatch object.

Return value

string The title to be used on this page.

File

src/Controller/LocalTaskUsageController.php, line 35

Class

LocalTaskUsageController
Controller for our local tasks.

Namespace

Drupal\entity_usage\Controller

Code

public function getTitleLocalTask(RouteMatchInterface $route_match) {
  $entity = $this
    ->getEntityFromRouteMatch($route_match);
  return parent::getTitle($entity
    ->getEntityTypeId(), $entity
    ->id());
}