ContentTranslationDefaultsConfigOverride.php in Open Social 10.3.x
Same filename in this branch
- 10.3.x modules/social_features/social_featured_content/src/ContentTranslationDefaultsConfigOverride.php
- 10.3.x modules/social_features/social_content_block/src/ContentTranslationDefaultsConfigOverride.php
- 10.3.x modules/social_features/social_landing_page/src/ContentTranslationDefaultsConfigOverride.php
- 10.3.x modules/social_features/social_page/src/ContentTranslationDefaultsConfigOverride.php
- 10.3.x modules/social_features/social_book/src/ContentTranslationDefaultsConfigOverride.php
- 10.3.x modules/social_features/social_topic/src/ContentTranslationDefaultsConfigOverride.php
- 10.3.x modules/social_features/social_event/src/ContentTranslationDefaultsConfigOverride.php
- 10.3.x modules/social_features/social_featured_items/src/ContentTranslationDefaultsConfigOverride.php
- 10.3.x modules/social_features/social_core/src/ContentTranslationDefaultsConfigOverride.php
- 10.3.x modules/social_features/social_follow_taxonomy/modules/social_follow_landing_page/src/ContentTranslationDefaultsConfigOverride.php
- 10.3.x modules/social_features/social_group/modules/social_group_flexible_group/src/ContentTranslationDefaultsConfigOverride.php
Namespace
Drupal\social_topicFile
modules/social_features/social_topic/src/ContentTranslationDefaultsConfigOverride.phpView source
<?php
namespace Drupal\social_topic;
use Drupal\social_core\ContentTranslationConfigOverrideBase;
use Drupal\Core\StringTranslation\StringTranslationTrait;
/**
* Provides content translation defaults for the event content type.
*
* @package Drupal\social_topic
*/
class ContentTranslationDefaultsConfigOverride extends ContentTranslationConfigOverrideBase {
use StringTranslationTrait;
/**
* {@inheritdoc}
*/
protected function getModule() {
return 'social_topic';
}
/**
* {@inheritdoc}
*/
protected function getDisplayName() {
return $this
->t('Topics');
}
/**
* {@inheritdoc}
*/
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,
],
];
}
}
Classes
Name | Description |
---|---|
ContentTranslationDefaultsConfigOverride | Provides content translation defaults for the event content type. |