class ContentTranslationDefaultsConfigOverride in Open Social 10.3.x
Same name in this branch
- 10.3.x modules/social_features/social_featured_content/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_featured_content\ContentTranslationDefaultsConfigOverride
- 10.3.x modules/social_features/social_content_block/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_content_block\ContentTranslationDefaultsConfigOverride
- 10.3.x modules/social_features/social_landing_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_landing_page\ContentTranslationDefaultsConfigOverride
- 10.3.x modules/social_features/social_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_page\ContentTranslationDefaultsConfigOverride
- 10.3.x modules/social_features/social_book/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_book\ContentTranslationDefaultsConfigOverride
- 10.3.x modules/social_features/social_topic/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_topic\ContentTranslationDefaultsConfigOverride
- 10.3.x modules/social_features/social_event/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_event\ContentTranslationDefaultsConfigOverride
- 10.3.x modules/social_features/social_featured_items/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_featured_items\ContentTranslationDefaultsConfigOverride
- 10.3.x modules/social_features/social_core/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_core\ContentTranslationDefaultsConfigOverride
- 10.3.x modules/social_features/social_follow_taxonomy/modules/social_follow_landing_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_follow_landing_page\ContentTranslationDefaultsConfigOverride
- 10.3.x modules/social_features/social_group/modules/social_group_flexible_group/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_group_flexible_group\ContentTranslationDefaultsConfigOverride
Same name and namespace in other branches
- 8.9 modules/social_features/social_landing_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_landing_page\ContentTranslationDefaultsConfigOverride
- 8.4 modules/social_features/social_landing_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_landing_page\ContentTranslationDefaultsConfigOverride
- 8.5 modules/social_features/social_landing_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_landing_page\ContentTranslationDefaultsConfigOverride
- 8.6 modules/social_features/social_landing_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_landing_page\ContentTranslationDefaultsConfigOverride
- 8.7 modules/social_features/social_landing_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_landing_page\ContentTranslationDefaultsConfigOverride
- 8.8 modules/social_features/social_landing_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_landing_page\ContentTranslationDefaultsConfigOverride
- 10.0.x modules/social_features/social_landing_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_landing_page\ContentTranslationDefaultsConfigOverride
- 10.1.x modules/social_features/social_landing_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_landing_page\ContentTranslationDefaultsConfigOverride
- 10.2.x modules/social_features/social_landing_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_landing_page\ContentTranslationDefaultsConfigOverride
Provides content translation defaults for the landing page content type.
@package Drupal\social_landing_page
Hierarchy
- class \Drupal\social_core\ContentTranslationConfigOverrideBase implements ConfigFactoryOverrideInterface
- class \Drupal\social_landing_page\ContentTranslationDefaultsConfigOverride
Expanded class hierarchy of ContentTranslationDefaultsConfigOverride
1 string reference to 'ContentTranslationDefaultsConfigOverride'
- social_landing_page.services.yml in modules/
social_features/ social_landing_page/ social_landing_page.services.yml - modules/social_features/social_landing_page/social_landing_page.services.yml
1 service uses ContentTranslationDefaultsConfigOverride
- social_landing_page.translation_defaults in modules/
social_features/ social_landing_page/ social_landing_page.services.yml - \Drupal\social_landing_page\ContentTranslationDefaultsConfigOverride
File
- modules/
social_features/ social_landing_page/ src/ ContentTranslationDefaultsConfigOverride.php, line 12
Namespace
Drupal\social_landing_pageView source
class ContentTranslationDefaultsConfigOverride extends ContentTranslationConfigOverrideBase {
/**
* {@inheritdoc}
*/
protected function getModule() {
return 'social_landing_page';
}
/**
* {@inheritdoc}
*/
protected function getDisplayName() {
// We can't use dependency injection here because it causes a circular
// dependency for the configuration override.
return \Drupal::translation()
->translate('Landing Pages');
}
/**
* {@inheritdoc}
*/
protected function getTranslationOverrides() {
return [
// Translations for "Landing Page" node type.
'language.content_settings.node.landing_page' => [
'third_party_settings' => [
'content_translation' => [
'enabled' => TRUE,
],
],
],
'core.base_field_override.node.landing_page.title' => [
'translatable' => TRUE,
],
'core.base_field_override.node.landing_page.menu_link' => [
'translatable' => TRUE,
],
'core.base_field_override.node.landing_page.path' => [
'translatable' => TRUE,
],
// Translations for "Section" paragraph type.
'language.content_settings.paragraph.section' => [
'third_party_settings' => [
'content_translation' => [
'enabled' => TRUE,
],
],
],
// Translations for "Block" paragraph type.
'language.content_settings.paragraph.block' => [
'third_party_settings' => [
'content_translation' => [
'enabled' => TRUE,
],
],
],
// Translations for "Button" paragraph type.
'language.content_settings.paragraph.button' => [
'third_party_settings' => [
'content_translation' => [
'enabled' => TRUE,
],
],
],
// Translations for "Hero" paragraph type.
'language.content_settings.paragraph.hero' => [
'third_party_settings' => [
'content_translation' => [
'enabled' => TRUE,
],
],
],
'field.field.paragraph.hero.field_hero_image' => [
'third_party_settings' => [
'content_translation' => [
'translation_sync' => [
'file' => 'file',
'alt' => '0',
'title' => '0',
],
],
],
],
// Translations for "Hero small" paragraph type.
'language.content_settings.paragraph.hero_small' => [
'third_party_settings' => [
'content_translation' => [
'enabled' => TRUE,
],
],
],
'field.field.paragraph.hero_small.field_hero_small_image' => [
'third_party_settings' => [
'content_translation' => [
'translation_sync' => [
'file' => 'file',
'alt' => '0',
'title' => '0',
],
],
],
],
// Translations for "Introduction" paragraph type.
'language.content_settings.paragraph.introduction' => [
'third_party_settings' => [
'content_translation' => [
'enabled' => TRUE,
],
],
],
// Translations for "Accordion" paragraph type.
'language.content_settings.paragraph.accordion' => [
'third_party_settings' => [
'content_translation' => [
'enabled' => TRUE,
],
],
],
// Translations for "Accordion Item" paragraph type.
'language.content_settings.paragraph.accordion_item' => [
'third_party_settings' => [
'content_translation' => [
'enabled' => TRUE,
],
],
],
];
}
}