You are here

function NodeTnid::operator_form in Views (for Drupal 7) 8.3

Provide simple boolean operator

Overrides FilterPluginBase::operator_form

File

lib/Views/translation/Plugin/views/filter/NodeTnid.php, line 38
Definition of Views\translation\Plugin\views\filter\NodeTnid.

Class

NodeTnid
Filter by whether the node is the original translation.

Namespace

Views\translation\Plugin\views\filter

Code

function operator_form(&$form, &$form_state) {
  $form['operator'] = array(
    '#type' => 'radios',
    '#title' => t('Include untranslated content'),
    '#default_value' => $this->operator,
    '#options' => array(
      1 => t('Yes'),
      0 => t('No'),
    ),
  );
}