Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / hook / config_translation_info_alter.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/config_translation_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/config_translation_info_alter.twig
new file mode 100644 (file)
index 0000000..b0ed1ed
--- /dev/null
@@ -0,0 +1,10 @@
+/**
+ * Implements hook_config_translation_info_alter().
+ */
+function {{ machine_name }}_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';
+}