public static function TranslationViewsFieldDefinitions::buildDefaultLangcodeField in Translation Views 8
Translation default langcode field definition.
1 call to TranslationViewsFieldDefinitions::buildDefaultLangcodeField()
- translation_views_views_data_alter in ./
translation_views.views.inc - Implements hook_views_data_alter().
File
- src/
TranslationViewsFieldDefinitions.php, line 103
Class
- TranslationViewsFieldDefinitions
- Class TranslationViewsFieldDefinitions.
Namespace
Drupal\translation_viewsCode
public static function buildDefaultLangcodeField($definition) {
$field = [];
$field['translation_default'] = $definition;
$field['translation_default']['real field'] = 'default_langcode';
$field['translation_default']['field']['id'] = 'boolean';
$field['translation_default']['filter']['id'] = 'boolean';
$field['translation_default']['filter']['accept null'] = TRUE;
$field['translation_default']['field']['help'] = t('A boolean indicating whether the target language is default language');
$field['translation_default']['filter']['help'] = t('A boolean indicating whether the target language is default language');
$field['translation_default']['title'] = t('Target language equals default language');
return $field;
}