class ContentTranslationDefaultsConfigOverride in Open Social 10.2.x
Same name in this branch
- 10.2.x modules/social_features/social_landing_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_landing_page\ContentTranslationDefaultsConfigOverride
- 10.2.x modules/social_features/social_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_page\ContentTranslationDefaultsConfigOverride
- 10.2.x modules/social_features/social_book/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_book\ContentTranslationDefaultsConfigOverride
- 10.2.x modules/social_features/social_event/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_event\ContentTranslationDefaultsConfigOverride
- 10.2.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_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_page\ContentTranslationDefaultsConfigOverride
- 8.4 modules/social_features/social_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_page\ContentTranslationDefaultsConfigOverride
- 8.5 modules/social_features/social_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_page\ContentTranslationDefaultsConfigOverride
- 8.6 modules/social_features/social_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_page\ContentTranslationDefaultsConfigOverride
- 8.7 modules/social_features/social_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_page\ContentTranslationDefaultsConfigOverride
- 8.8 modules/social_features/social_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_page\ContentTranslationDefaultsConfigOverride
- 10.3.x modules/social_features/social_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_page\ContentTranslationDefaultsConfigOverride
- 10.0.x modules/social_features/social_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_page\ContentTranslationDefaultsConfigOverride
- 10.1.x modules/social_features/social_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_page\ContentTranslationDefaultsConfigOverride
Provides content translation defaults for the basic page content type.
@package Drupal\social_page
Hierarchy
- class \Drupal\social_core\ContentTranslationConfigOverrideBase implements ConfigFactoryOverrideInterface
- class \Drupal\social_page\ContentTranslationDefaultsConfigOverride
Expanded class hierarchy of ContentTranslationDefaultsConfigOverride
1 string reference to 'ContentTranslationDefaultsConfigOverride'
- social_page.services.yml in modules/
social_features/ social_page/ social_page.services.yml - modules/social_features/social_page/social_page.services.yml
1 service uses ContentTranslationDefaultsConfigOverride
- social_page.translation_defaults in modules/
social_features/ social_page/ social_page.services.yml - \Drupal\social_page\ContentTranslationDefaultsConfigOverride
File
- modules/
social_features/ social_page/ src/ ContentTranslationDefaultsConfigOverride.php, line 12
Namespace
Drupal\social_pageView source
class ContentTranslationDefaultsConfigOverride extends ContentTranslationConfigOverrideBase {
/**
* {@inheritdoc}
*/
protected function getModule() {
return 'social_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('Pages');
}
/**
* {@inheritdoc}
*/
protected function getTranslationOverrides() {
return [
'language.content_settings.node.page' => [
'third_party_settings' => [
'content_translation' => [
'enabled' => TRUE,
],
],
],
'core.base_field_override.node.page.title' => [
'translatable' => TRUE,
],
'core.base_field_override.node.page.menu_link' => [
'translatable' => TRUE,
],
'core.base_field_override.node.page.path' => [
'translatable' => TRUE,
],
'field.field.node.page.body' => [
'translatable' => TRUE,
],
'field.field.node.page.field_page_image' => [
'third_party_settings' => [
'content_translation' => [
'translation_sync' => [
'file' => 'file',
'alt' => '0',
'title' => '0',
],
],
],
'translatable' => TRUE,
],
];
}
}