You are here

public function NodeTnidChild::query in Views (for Drupal 7) 8.3

Add this filter to the query.

Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.

Overrides FilterPluginBase::query

File

lib/Views/translation/Plugin/views/filter/NodeTnidChild.php, line 31
Definition of Views\translation\Plugin\views\filter\NodeTnidChild.

Class

NodeTnidChild
Filter by whether the node is not the original translation.

Namespace

Views\translation\Plugin\views\filter

Code

public function query() {
  $table = $this
    ->ensureMyTable();
  $this->query
    ->add_where_expression($this->options['group'], "{$table}.tnid <> {$table}.nid AND {$table}.tnid > 0");
}