protected function Term::defineOptions in Views (for Drupal 7) 8.3
Retrieve the options when this is a new access control plugin
Overrides ArgumentValidatorPluginBase::defineOptions
File
- lib/
Views/ taxonomy/ Plugin/ views/ argument_validator/ Term.php, line 40 - Definition of Views\taxonomy\Plugin\views\argument_validator\Term.
Class
- Term
- Validate whether an argument is an acceptable node.
Namespace
Views\taxonomy\Plugin\views\argument_validatorCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['vocabularies'] = array(
'default' => array(),
);
$options['type'] = array(
'default' => 'tid',
);
$options['transform'] = array(
'default' => FALSE,
'bool' => TRUE,
);
return $options;
}