protected function StaticTest::defineOptions in Views (for Drupal 7) 8.3
Retrieve the options when this is a new access control plugin
Overrides AccessPluginBase::defineOptions
File
- tests/
views_test_data/ lib/ Drupal/ views_test_data/ Plugin/ views/ access/ StaticTest.php, line 25 - Definition of Drupal\views_test_data\Plugin\views\access\StaticTest.
Class
- StaticTest
- Tests a static access plugin.
Namespace
Drupal\views_test_data\Plugin\views\accessCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['access'] = array(
'default' => FALSE,
'bool' => TRUE,
);
return $options;
}