public static function TranslationViewsFieldDefinitions::buildChangedField in Translation Views 8
Translation changed field definition.
1 call to TranslationViewsFieldDefinitions::buildChangedField()
- translation_views_views_data_alter in ./
translation_views.views.inc - Implements hook_views_data_alter().
File
- src/
TranslationViewsFieldDefinitions.php, line 60
Class
- TranslationViewsFieldDefinitions
- Class TranslationViewsFieldDefinitions.
Namespace
Drupal\translation_viewsCode
public static function buildChangedField($definition) {
$field = [];
$field['translation_changed'] = $definition;
$field['translation_changed']['real field'] = 'changed';
$field['translation_changed']['field']['id'] = 'date';
$field['translation_changed']['field']['help'] = t('The time that the node was last edited in target language.');
$field['translation_changed']['title'] = t('Translation changed time');
return $field;
}