protected function Node::defineOptions

Same name in this branch
  1. 9.x drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/Node.php \Drupal\node\Plugin\views\field\Node::defineOptions()
  2. 9.x drupal/core/modules/node/lib/Drupal/node/Plugin/views/argument_validator/Node.php \Drupal\node\Plugin\views\argument_validator\Node::defineOptions()

Retrieve the options when this is a new access control plugin

Overrides ArgumentValidatorPluginBase::defineOptions

File

drupal/core/modules/node/lib/Drupal/node/Plugin/views/argument_validator/Node.php, line 25
Definition of Drupal\node\Plugin\views\argument_validator\Node.

Class

Node
Validate whether an argument is an acceptable node.

Namespace

Drupal\node\Plugin\views\argument_validator

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['types'] = array(
    'default' => array(),
  );
  $options['access'] = array(
    'default' => FALSE,
    'bool' => TRUE,
  );
  $options['access_op'] = array(
    'default' => 'view',
  );
  $options['nid_type'] = array(
    'default' => 'nid',
  );
  return $options;
}