public function TranslationStatus::init in Translation Views 8
Initialize the plugin.
Parameters
\Drupal\views\ViewExecutable $view: The view object.
\Drupal\views\Plugin\views\display\DisplayPluginBase $display: The display handler.
array $options: The options configured for this plugin.
Overrides Boolean::init
File
- src/
Plugin/ views/ field/ TranslationStatus.php, line 55
Class
- TranslationStatus
- Provides a field that adds translation status.
Namespace
Drupal\translation_views\Plugin\views\fieldCode
public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
$this->definition['output formats']['status'] = [
t('Translated'),
$this
->t('Not translated'),
];
$this->field_alias = 'translation_status';
parent::init($view, $display, $options);
}