public function ContentTranslationManager::getBundleTranslationSettings in Drupal 8
Same name and namespace in other branches
- 9 core/modules/content_translation/src/ContentTranslationManager.php \Drupal\content_translation\ContentTranslationManager::getBundleTranslationSettings()
- 10 core/modules/content_translation/src/ContentTranslationManager.php \Drupal\content_translation\ContentTranslationManager::getBundleTranslationSettings()
Returns translation settings for the specified bundle.
Parameters
string $entity_type_id: The entity type identifier.
string $bundle: The bundle name.
Return value
array An associative array of values keyed by setting name.
Overrides BundleTranslationSettingsInterface::getBundleTranslationSettings
File
- core/
modules/ content_translation/ src/ ContentTranslationManager.php, line 135
Class
- ContentTranslationManager
- Provides common functionality for content translation.
Namespace
Drupal\content_translationCode
public function getBundleTranslationSettings($entity_type_id, $bundle) {
$config = $this
->loadContentLanguageSettings($entity_type_id, $bundle);
return $config
->getThirdPartySetting('content_translation', 'bundle_settings', []);
}