You are here

function fz152_contact_config_translation_info in FZ152 8

Implements hook_config_translation_info().

File

modules/contact/fz152_contact.module, line 11
Main file for hooks and custom functions.

Code

function fz152_contact_config_translation_info(&$info) {
  $bundle_info = \Drupal::service('entity_type.bundle.info');
  $contact_bundles = $bundle_info
    ->getBundleInfo('contact_message');
  $names = [];
  foreach ($contact_bundles as $bundle_name => $bundle_info) {
    $names[] = "fz152_contact.settings.{$bundle_name}";
  }
  $info['fz152_contact.settings'] = [
    'title' => 'FZ152 — Contact',
    'base_route_name' => 'fz152.settings.contact',
    'names' => $names,
    'provider' => 'fz152_contact',
  ];
}