You are here

public function ContainerController::editTitle in GoogleTagManager 8

Route title callback.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.

\Drupal\Core\Entity\EntityInterface $_entity: (optional) An entity, passed in directly from the request attributes.

Return value

string|null The title for the entity edit page, if an entity was found.

Overrides EntityController::editTitle

1 string reference to 'ContainerController::editTitle'
google_tag.routing.yml in ./google_tag.routing.yml
google_tag.routing.yml

File

src/ContainerController.php, line 42

Class

ContainerController
Controller for the container configuration entity type.

Namespace

Drupal\google_tag

Code

public function editTitle(RouteMatchInterface $route_match, EntityInterface $_entity = NULL) {
  if ($entity = $this
    ->doGetEntity($route_match, $_entity)) {
    return $this
      ->t('Edit %label container', [
      '%label' => $entity
        ->label(),
    ]);
  }
}