function StaticTest::defineOptions

Same name in other branches
  1. 8.9.x core/modules/views/tests/modules/views_test_data/src/Plugin/views/access/StaticTest.php \Drupal\views_test_data\Plugin\views\access\StaticTest::defineOptions()
  2. 10 core/modules/views/tests/modules/views_test_data/src/Plugin/views/access/StaticTest.php \Drupal\views_test_data\Plugin\views\access\StaticTest::defineOptions()
  3. 11.x core/modules/views/tests/modules/views_test_data/src/Plugin/views/access/StaticTest.php \Drupal\views_test_data\Plugin\views\access\StaticTest::defineOptions()

Overrides PluginBase::defineOptions

File

core/modules/views/tests/modules/views_test_data/src/Plugin/views/access/StaticTest.php, line 20

Class

StaticTest
Tests a static access plugin.

Namespace

Drupal\views_test_data\Plugin\views\access

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    $options['access'] = [
        'default' => FALSE,
    ];
    return $options;
}

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