function translation_entity_get_config

Retrieves the value for the specified setting.

@returns mixed The stored value for the given setting.

Parameters

string $entity_type: The type of the entity the setting refer to.

string $bundle: The bundle of the entity the setting refer to.

string $setting: The name of the setting.

2 calls to translation_entity_get_config()
translation_entity_enabled in drupal/core/modules/translation_entity/translation_entity.module
Determines whether the given entity type is translatable.
translation_entity_entity_bundle_info_alter in drupal/core/modules/translation_entity/translation_entity.module
Implements hook_entity_bundle_info_alter().

File

drupal/core/modules/translation_entity/translation_entity.module, line 416
Allows entities to be translated into different languages.

Code

function translation_entity_get_config($entity_type, $bundle, $setting) {
  $key = translation_entity_get_config_key($entity_type, $bundle, $setting);
  return config('translation_entity.settings')
    ->get($key);
}