$updated_routes->
add($field_ui_base_route,
$this->collection->
get($field_ui_base_route));
$event =
new RouteBuildEvent($updated_routes);
// Apply route subscribers that add routes based on field_ui_base_route,
// in the order of their weights.
$subscribers =
[ 'field_ui' => 'field_ui.subscriber',
'content_translation' => 'content_translation.subscriber',
];
foreach ($subscribers as $module_name =>
$service_name) { if ($this->moduleHandler->
moduleExists($module_name)) { \Drupal::
service($service_name)->
onAlterRoutes($event);
} } $updated_routes->
remove($field_ui_base_route);
$route_names =
array_merge($route_names,
array_keys($updated_routes->
all()));
$route_names =
array_merge($route_names,
[ // @see \Drupal\config_translation\Routing\RouteSubscriber::alterRoutes()
"config_translation.item.add.{
$field_ui_base_route}",
"config_translation.item.edit.{
$field_ui_base_route}",
"config_translation.item.delete.{
$field_ui_base_route}",
]);
}