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'
File
- src/
ContainerController.php, line 26
Class
- ContainerController
- Controller for the container configuration entity type.
Namespace
Drupal\google_tagCode
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(),
]);
}