hook_config_translation_info_alter(&$info)
Alter existing translation tabs for translation of configuration.
This hook is useful to extend existing configuration mappers with new configuration names, for example when altering existing forms with new settings stored elsewhere. This allows the translation experience to also reflect the compound form element in one screen.
array $info: An associative array of discovered configuration mappers. Use an entity name for the key (for entity mapping) or a unique string for configuration name list mapping. The values of the associative array are arrays themselves in the same structure as the *.config_translation.yml files.
hook_translation_info()
\Drupal\config_translation\ConfigMapperManagerInterface
function hook_config_translation_info_alter(&$info) { // Add additional site settings to the site information screen, so it shows // up on the translation screen. (Form alter in the elements whose values are // stored in this config file using regular form altering on the original // configuration form.) $info['system.site_information_settings']['names'][] = 'example.site.setting'; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!config_translation!config_translation.api.php/function/hook_config_translation_info_alter/8.1.x