You are here

protected function Node::defineOptions in Views (for Drupal 7) 8.3

Same name in this branch
  1. 8.3 lib/Views/node/Plugin/views/argument_validator/Node.php \Views\node\Plugin\views\argument_validator\Node::defineOptions()
  2. 8.3 lib/Views/node/Plugin/views/field/Node.php \Views\node\Plugin\views\field\Node::defineOptions()

Retrieve the options when this is a new access control plugin

Overrides ArgumentValidatorPluginBase::defineOptions

File

lib/Views/node/Plugin/views/argument_validator/Node.php, line 25
Definition of Views\node\Plugin\views\argument_validator\Node.

Class

Node
Validate whether an argument is an acceptable node.

Namespace

Views\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;
}