diff --git a/core/lib/Drupal/Core/Entity/Controller/EntityController.php b/core/lib/Drupal/Core/Entity/Controller/EntityController.php index af4e25f..ffeec12 100644 --- a/core/lib/Drupal/Core/Entity/Controller/EntityController.php +++ b/core/lib/Drupal/Core/Entity/Controller/EntityController.php @@ -86,15 +86,13 @@ public static function create(ContainerInterface $container) { /** * Provides a generic add title callback for entities without bundles. * - * @param \Drupal\Core\Routing\RouteMatchInterface $route_match - * The route match. * @param string $entity_type_id * The entity type ID. * * @return string * The title for the entity add page. */ - public function addTitle(RouteMatchInterface $route_match, $entity_type_id) { + public function addTitle($entity_type_id) { $entity_type = $this->entityTypeManager->getDefinition($entity_type_id); return $this->t('Add @entity-type', ['@entity-type' => $entity_type->getLowercaseLabel()]); } diff --git a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMul.php b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMul.php index af6a5da..c43c596 100644 --- a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMul.php +++ b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMul.php @@ -38,7 +38,7 @@ * "langcode" = "langcode", * }, * links = { - * "add-form" = "/entity_test_mul/add", + * "add-form" = "/entity_test_mul/add", * "canonical" = "/entity_test_mul/manage/{entity_test_mul}", * "edit-form" = "/entity_test_mul/manage/{entity_test_mul}/edit", * "delete-form" = "/entity_test/delete/entity_test_mul/{entity_test_mul}",