You are here

public function LocalTaskUsageController::listUsageLocalTask in Entity Usage 8

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

Lists the usage of a given entity.

Parameters

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

Return value

array The page build to be rendered.

File

src/Controller/LocalTaskUsageController.php, line 50

Class

LocalTaskUsageController
Controller for our local tasks.

Namespace

Drupal\entity_usage\Controller

Code

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