You are here

protected function Entity::defineOptions in Drupal 9

Same name in this branch
  1. 9 core/modules/views/src/Plugin/views/area/Entity.php \Drupal\views\Plugin\views\area\Entity::defineOptions()
  2. 9 core/modules/views/src/Plugin/views/argument_validator/Entity.php \Drupal\views\Plugin\views\argument_validator\Entity::defineOptions()
Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/argument_validator/Entity.php \Drupal\views\Plugin\views\argument_validator\Entity::defineOptions()
  2. 10 core/modules/views/src/Plugin/views/argument_validator/Entity.php \Drupal\views\Plugin\views\argument_validator\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 83

Class

Entity
Defines an argument validator plugin for each entity type.

Namespace

Drupal\views\Plugin\views\argument_validator

Code

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