function InOperatorTest::validate_options_callback

Same name and namespace in other branches
  1. 8.9.x core/modules/views/tests/src/Unit/Plugin/filter/InOperatorTest.php \Drupal\Tests\views\Unit\Plugin\filter\InOperatorTest::validate_options_callback()
  2. 10 core/modules/views/tests/src/Unit/Plugin/filter/InOperatorTest.php \Drupal\Tests\views\Unit\Plugin\filter\InOperatorTest::validate_options_callback()
  3. 11.x core/modules/views/tests/src/Unit/Plugin/filter/InOperatorTest.php \Drupal\Tests\views\Unit\Plugin\filter\InOperatorTest::validate_options_callback()

Return value

array

File

core/modules/views/tests/src/Unit/Plugin/filter/InOperatorTest.php, line 35

Class

InOperatorTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21views%21src%21Plugin%21views%21filter%21InOperator.php/class/InOperator/9" title="Simple filter to handle matching of multiple options selectable via checkboxes." class="local">\Drupal\views\Plugin\views\filter\InOperator</a> @group views

Namespace

Drupal\Tests\views\Unit\Plugin\filter

Code

public static function validate_options_callback() {
    return [
        'Yes',
        'No',
    ];
}

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