Search for operators

  1. Search 7.x for operators
  2. Search 9.5.x for operators
  3. Search 10.3.x for operators
  4. Search 11.x for operators
  5. Other projects
Title Object type File name Summary
BooleanOperator::operators function core/modules/views/src/Plugin/views/filter/BooleanOperator.php Returns an array of operator information.
BooleanOperatorString class core/modules/views/src/Plugin/views/filter/BooleanOperatorString.php Simple filter to handle matching of boolean values.
BooleanOperatorString.php file core/modules/views/src/Plugin/views/filter/BooleanOperatorString.php
BooleanOperatorString::query function core/modules/views/src/Plugin/views/filter/BooleanOperatorString.php Add this filter to the query.
ConditionTest::dataProviderTestCompileWithKnownOperators function core/tests/Drupal/Tests/Core/Database/ConditionTest.php Provides a list of known operations and the expected output.
ConditionTest::testCompileWithKnownOperators function core/tests/Drupal/Tests/Core/Database/ConditionTest.php @covers ::compile
DateFilterTest::testLimitExposedOperators function core/modules/datetime/tests/src/Functional/DateFilterTest.php Tests the limit of the expose operator functionality.
EntityCondition::$allowedOperators property core/modules/jsonapi/src/Query/EntityCondition.php The allowed condition operators.
FilterBooleanOperatorStringTest class core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php Tests the core Drupal\views\Plugin\views\filter\BooleanOperatorString
handler.
FilterBooleanOperatorStringTest.php file core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php
FilterBooleanOperatorStringTest::$columnMap property core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php Map column names.
FilterBooleanOperatorStringTest::$modules property core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php The modules to enable for this test.
FilterBooleanOperatorStringTest::$testViews property core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php Views used by this test.
FilterBooleanOperatorStringTest::dataSet function core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php Returns a very simple test dataset.
FilterBooleanOperatorStringTest::getGroupedExposedFilters function core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php Provides grouped exposed filter configuration.
FilterBooleanOperatorStringTest::schemaDefinition function core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php Returns the schema definition.
FilterBooleanOperatorStringTest::testFilterBooleanOperatorString function core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php Tests the BooleanOperatorString filter.
FilterBooleanOperatorStringTest::testFilterGroupedExposed function core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php Tests the Boolean filter with grouped exposed form enabled.
FilterBooleanOperatorStringTest::viewsData function core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php Returns the views data definition.
FilterInOperatorTest::testFilterInOperatorSimple function core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php
FilterPluginBase::operatorSubmit function core/modules/views/src/Plugin/views/filter/FilterPluginBase.php Perform any necessary changes to the form values prior to storage.
There is no need for this function to actually store the data.
FilterTest::testInOperatorSelectAllOptions function core/modules/views/tests/src/Functional/Plugin/FilterTest.php Test no error message is displayed when all options are selected in an
exposed filter.
FilterTest::testLimitExposedOperators function core/modules/views/tests/src/Functional/Plugin/FilterTest.php Tests the limit of the expose operator functionality.
InOperator::operators function core/modules/views/src/Plugin/views/filter/InOperator.php This kind of construct makes it relatively easy for a child class
to add or remove functionality by overriding this function and
adding/removing items from this array.
limit-exposed-operators.php file core/modules/views/tests/fixtures/update/limit-exposed-operators.php Test fixture.
LimitOperatorsDefaultsTest class core/modules/views/tests/src/Functional/Update/LimitOperatorsDefaultsTest.php Tests the upgrade path for limit operators feature.
LimitOperatorsDefaultsTest.php file core/modules/views/tests/src/Functional/Update/LimitOperatorsDefaultsTest.php
LimitOperatorsDefaultsTest::setDatabaseDumpFiles function core/modules/views/tests/src/Functional/Update/LimitOperatorsDefaultsTest.php Set database dump files to be used.
LimitOperatorsDefaultsTest::testViewsPostUpdateLimitOperatorsDefaultValues function core/modules/views/tests/src/Functional/Update/LimitOperatorsDefaultsTest.php Tests that default settings for limit operators are present.
ManyToOne::operators function core/modules/views/src/Plugin/views/filter/ManyToOne.php This kind of construct makes it relatively easy for a child class
to add or remove functionality by overriding this function and
adding/removing items from this array.
NumericFilter::operators function core/modules/views/src/Plugin/views/filter/NumericFilter.php
Roles::operators function core/modules/user/src/Plugin/views/filter/Roles.php Override empty and not empty operator labels to be clearer for user roles.
StringFilter::operators function core/modules/views/src/Plugin/views/filter/StringFilter.php This kind of construct makes it relatively easy for a child class
to add or remove functionality by overriding this function and
adding/removing items from this array.

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