Skip to content
Snippets Groups Projects
Commit e76009bd authored by Alexandre Mallet's avatar Alexandre Mallet Committed by Alexandre Mallet
Browse files

Issue #2893845 by woprrr: Adjust Titles of routes add/edit as xxxx

parent 2f940ee1
No related branches found
No related tags found
No related merge requests found
......@@ -245,8 +245,7 @@ abstract class EntityFormModeBase implements ContainerInjectionInterface {
$form_mode_label = $route_match->getRouteObject()
->getOption('parameters')['form_mode']['label'];
return $this->t('@op @name as @form_mode_label', [
'@name' => (!$entity_storage instanceof UserStorageInterface) ? $entity_storage->get('name') : $entity_storage->getEntityType()
->id(),
'@name' => $entity_storage->label(),
'@form_mode_label' => $form_mode_label,
'@op' => $operation,
]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment