You are here

public function ContainerController::addTitle in GoogleTagManager 8

Route title callback.

Parameters

string $entity_type_id: The entity type ID.

Return value

string The title for the add entity page.

Overrides EntityController::addTitle

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

File

src/ContainerController.php, line 26

Class

ContainerController
Controller for the container configuration entity type.

Namespace

Drupal\google_tag

Code

public function addTitle($entity_type_id) {
  $entity_type = $this->entityTypeManager
    ->getDefinition($entity_type_id);
  return $this
    ->t('Add @entity-type', [
    '@entity-type' => $entity_type
      ->getSingularLabel(),
  ]);
}