FilterBooleanOperatorDefaultTest.php

Same filename in this branch
  1. 11.x core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorDefaultTest.php
Same filename in other branches
  1. 9 core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorDefaultTest.php
  2. 9 core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterBooleanOperatorDefaultTest.php
  3. 8.9.x core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorDefaultTest.php
  4. 8.9.x core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterBooleanOperatorDefaultTest.php
  5. 10 core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorDefaultTest.php
  6. 10 core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterBooleanOperatorDefaultTest.php

Namespace

Drupal\views_test_data\Plugin\views\filter

File

core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterBooleanOperatorDefaultTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\views_test_data\Plugin\views\filter;

use Drupal\views\Attribute\ViewsFilter;
use Drupal\views\Plugin\views\filter\BooleanOperator;

/**
 * Filter to test queryOpBoolean() with default operator.
 *
 * @ingroup views_filter_handlers
 */
class FilterBooleanOperatorDefaultTest extends BooleanOperator {
    
    /**
     * {@inheritdoc}
     */
    public function query() {
        $this->ensureMyTable();
        $field = "{$this->tableAlias}.{$this->realField}";
        $this->queryOpBoolean($field);
    }

}

Classes

Title Deprecated Summary
FilterBooleanOperatorDefaultTest Filter to test queryOpBoolean() with default operator.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.