protected function alterRoutes(RouteCollection $collection) {
// Look for routes that use ContentTranslationController and change it
// to our subclass.
foreach ($collection as $route) {
if ($route
->getDefault('_controller') == '\\Drupal\\config_translation\\Controller\\ConfigTranslationController::itemPage') {
$route
->setDefault('_controller', '\\Drupal\\tmgmt_config\\Controller\\ConfigTranslationControllerOverride::itemPage');
}
}
}