public static function TranslationViewsFieldDefinitions::buildModerationStateField in Translation Views 8
Translation moderation state field definition.
1 call to TranslationViewsFieldDefinitions::buildModerationStateField()
- translation_views_views_data_alter in ./
translation_views.views.inc - Implements hook_views_data_alter().
File
- src/
TranslationViewsFieldDefinitions.php, line 150
Class
- TranslationViewsFieldDefinitions
- Class TranslationViewsFieldDefinitions.
Namespace
Drupal\translation_viewsCode
public static function buildModerationStateField() {
return [
'translation_moderation_state' => [
'title' => t('Translation moderation state'),
'field' => [
'id' => 'translation_moderation_state',
'property' => 'translation_moderation_state',
'field_name' => t('Translation moderation state'),
'help' => t('Moderation state of the translation.'),
],
],
];
}