You are here

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

Same name in this branch
  1. 8.3 lib/Views/user/Plugin/views/argument_default/User.php \Views\user\Plugin\views\argument_default\User::defineOptions()
  2. 8.3 lib/Views/user/Plugin/views/argument_validator/User.php \Views\user\Plugin\views\argument_validator\User::defineOptions()
  3. 8.3 lib/Views/user/Plugin/views/field/User.php \Views\user\Plugin\views\field\User::defineOptions()

Retrieve the options when this is a new access control plugin

Overrides ArgumentDefaultPluginBase::defineOptions

File

lib/Views/user/Plugin/views/argument_default/User.php, line 25
Definition of Views\user\Plugin\views\argument_default\User.

Class

User
Default argument plugin to extract a user via menu_get_object.

Namespace

Views\user\Plugin\views\argument_default

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['user'] = array(
    'default' => '',
    'bool' => TRUE,
    'translatable' => FALSE,
  );
  return $options;
}