function Entity::defineOptions
Retrieves the options when this is a new access control plugin.
Overrides ArgumentValidatorPluginBase::defineOptions
2 calls to Entity::defineOptions()
- TermName::defineOptions in core/
modules/ taxonomy/ src/ Plugin/ views/ argument_validator/ TermName.php  - Retrieves the options when this is a new access control plugin.
 - User::defineOptions in core/
modules/ user/ src/ Plugin/ views/ argument_validator/ User.php  - Retrieves the options when this is a new access control plugin.
 
2 methods override Entity::defineOptions()
- TermName::defineOptions in core/
modules/ taxonomy/ src/ Plugin/ views/ argument_validator/ TermName.php  - Retrieves the options when this is a new access control plugin.
 - User::defineOptions in core/
modules/ user/ src/ Plugin/ views/ argument_validator/ User.php  - Retrieves the options when this is a new access control plugin.
 
File
- 
              core/
modules/ views/ src/ Plugin/ views/ argument_validator/ Entity.php, line 82  
Class
- Entity
 - Defines an argument validator plugin for each entity type.
 
Namespace
Drupal\views\Plugin\views\argument_validatorCode
protected function defineOptions() {
  $options = parent::defineOptions();
  $options['bundles'] = [
    'default' => [],
  ];
  $options['access'] = [
    'default' => FALSE,
  ];
  $options['operation'] = [
    'default' => 'view',
  ];
  $options['multiple'] = [
    'default' => FALSE,
  ];
  return $options;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.