You are here

protected function ContentTranslationDefaultsConfigOverride::getTranslationOverrides in Open Social 10.3.x

Same name in this branch
  1. 10.3.x modules/social_features/social_landing_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_landing_page\ContentTranslationDefaultsConfigOverride::getTranslationOverrides()
  2. 10.3.x modules/social_features/social_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_page\ContentTranslationDefaultsConfigOverride::getTranslationOverrides()
  3. 10.3.x modules/social_features/social_book/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_book\ContentTranslationDefaultsConfigOverride::getTranslationOverrides()
  4. 10.3.x modules/social_features/social_topic/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_topic\ContentTranslationDefaultsConfigOverride::getTranslationOverrides()
  5. 10.3.x modules/social_features/social_event/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_event\ContentTranslationDefaultsConfigOverride::getTranslationOverrides()
  6. 10.3.x modules/social_features/social_group/modules/social_group_flexible_group/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_group_flexible_group\ContentTranslationDefaultsConfigOverride::getTranslationOverrides()

Returns the configuration override for this module's translations.

By making this a separate method it can easily be overwritten in child classes without having to duplicate the logic of whether it should be invoked.

Return value

array An array keyed by configuration name with the override as value.

Overrides ContentTranslationConfigOverrideBase::getTranslationOverrides

File

modules/social_features/social_topic/src/ContentTranslationDefaultsConfigOverride.php, line 34

Class

ContentTranslationDefaultsConfigOverride
Provides content translation defaults for the event content type.

Namespace

Drupal\social_topic

Code

protected function getTranslationOverrides() {
  return [
    'language.content_settings.node.topic' => [
      'third_party_settings' => [
        'content_translation' => [
          'enabled' => TRUE,
        ],
      ],
    ],
    'core.base_field_override.node.topic.title' => [
      'translatable' => TRUE,
    ],
    'core.base_field_override.node.topic.menu_link' => [
      'translatable' => TRUE,
    ],
    'core.base_field_override.node.topic.path' => [
      'translatable' => TRUE,
    ],
    'core.base_field_override.node.topic.uid' => [
      'translatable' => TRUE,
    ],
    'core.base_field_override.node.topic.status' => [
      'translatable' => TRUE,
    ],
  ];
}