public function LingotekConfigurationService::getFieldPropertiesLingotekEnabled in Lingotek Translation 8
Same name and namespace in other branches
- 8.2 src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getFieldPropertiesLingotekEnabled()
- 4.0.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getFieldPropertiesLingotekEnabled()
- 3.0.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getFieldPropertiesLingotekEnabled()
- 3.1.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getFieldPropertiesLingotekEnabled()
- 3.2.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getFieldPropertiesLingotekEnabled()
- 3.3.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getFieldPropertiesLingotekEnabled()
- 3.4.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getFieldPropertiesLingotekEnabled()
- 3.5.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getFieldPropertiesLingotekEnabled()
- 3.6.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getFieldPropertiesLingotekEnabled()
- 3.7.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getFieldPropertiesLingotekEnabled()
- 3.8.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getFieldPropertiesLingotekEnabled()
Gets the configured properties of a field that are enabled for Lingotek translation.
@returns string[] Field properties that are enabled.
Parameters
string $entity_type_id: The type of the entity.
string $bundle: The bundle of the entity.
string $field_name: The field of the bundle.
Overrides LingotekConfigurationServiceInterface::getFieldPropertiesLingotekEnabled
File
- src/
LingotekConfigurationService.php, line 231 - Contains \Drupal\lingotek\LingotekConfigurationService.
Class
- LingotekConfigurationService
- Service for managing lingotek configuration.
Namespace
Drupal\lingotekCode
public function getFieldPropertiesLingotekEnabled($entity_type_id, $bundle, $field_name) {
$config = \Drupal::config('lingotek.settings');
$key = 'translate.entity.' . $entity_type_id . '.' . $bundle . '.field.' . $field_name . ':properties';
return $config
->get($key);
}