function Entity::defineOptions

Same name in this branch
  1. 10 core/modules/views/src/Plugin/views/area/Entity.php \Drupal\views\Plugin\views\area\Entity::defineOptions()
Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/argument_validator/Entity.php \Drupal\views\Plugin\views\argument_validator\Entity::defineOptions()
  2. 9 core/modules/views/src/Plugin/views/area/Entity.php \Drupal\views\Plugin\views\area\Entity::defineOptions()
  3. 8.9.x core/modules/views/src/Plugin/views/argument_validator/Entity.php \Drupal\views\Plugin\views\argument_validator\Entity::defineOptions()
  4. 8.9.x core/modules/views/src/Plugin/views/area/Entity.php \Drupal\views\Plugin\views\area\Entity::defineOptions()
  5. 11.x core/modules/views/src/Plugin/views/argument_validator/Entity.php \Drupal\views\Plugin\views\argument_validator\Entity::defineOptions()
  6. 11.x core/modules/views/src/Plugin/views/area/Entity.php \Drupal\views\Plugin\views\area\Entity::defineOptions()

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_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;
}

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