public function LocalTaskUsageController::getTitleLocalTask in Entity Usage 8
Same name and namespace in other branches
- 8.4 src/Controller/LocalTaskUsageController.php \Drupal\entity_usage\Controller\LocalTaskUsageController::getTitleLocalTask()
- 8.2 src/Controller/LocalTaskUsageController.php \Drupal\entity_usage\Controller\LocalTaskUsageController::getTitleLocalTask()
- 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 36
Class
- LocalTaskUsageController
- Controller for our local tasks.
Namespace
Drupal\entity_usage\ControllerCode
public function getTitleLocalTask(RouteMatchInterface $route_match) {
$entity = $this
->getEntityFromRouteMatch($route_match);
return parent::getTitle($entity
->getEntityTypeId(), $entity
->id());
}