You are here

public static function TranslationViewsFieldDefinitions::buildOutdatedField in Translation Views 8

Translation outdated field definition.

1 call to TranslationViewsFieldDefinitions::buildOutdatedField()
translation_views_views_data_alter in ./translation_views.views.inc
Implements hook_views_data_alter().

File

src/TranslationViewsFieldDefinitions.php, line 73

Class

TranslationViewsFieldDefinitions
Class TranslationViewsFieldDefinitions.

Namespace

Drupal\translation_views

Code

public static function buildOutdatedField($definition) {
  $field = [];
  $field['translation_outdated'] = $definition;
  $field['translation_outdated']['real field'] = 'content_translation_outdated';
  $field['translation_outdated']['field']['id'] = 'boolean';
  $field['translation_outdated']['filter']['id'] = 'boolean';
  $field['translation_outdated']['field']['help'] = t('A boolean indicating whether the target language translation is outdated');
  $field['translation_outdated']['filter']['help'] = t('A boolean indicating whether the target language translation is outdated');
  $field['translation_outdated']['title'] = t('Translation outdated');
  return $field;
}