- First commit to issue fork.
Over on #2351991-85: Add a config entity for a configurable, topic-based help system β , I tried to make the new help topic config entity use the "canonical" path as the base path for config translation.
I thought all I would need to do is:
function help_config_translation_info_alter(&$info) {
$info['help_topic']['base_route_name'] = 'entity.help_topic.canonical';
}
However, this doesn't work, because the config translation module has a bunch of other spots where it is assuming that the base route is the edit form page, not the canonical page for the entity.
This assumption seems wrong. If the config translation module is going to have a hook to provide the base route, it should be getting that information from the hook/alter always.
Things not currently working right (that have this assumption):
if ($entity_type->hasLinkTemplate('edit-form')) {
$entity_type->setLinkTemplate('drupal:config-translation-overview', 'config_translation.item.overview.' . $entity_type->getLinkTemplate('edit-form'));
}
this needs to be using the base route name set up in the hook/alter, not assuming it's the edit form.
Needs work
11.0 π₯
config_translation.module
(Drupal 8 Multilingual Initiative) is the tag used by the multilingual initiative to mark core issues (and some contributed module issues). For versions other than Drupal 8, use the i18n (Internationalization) tag on issues which involve or affect multilingual / multinational support. That is preferred over Translation.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.