function User::defineOptions

Retrieve the options when this is a new access control plugin.

Overrides ArgumentDefaultPluginBase::defineOptions

File

core/modules/user/src/Plugin/views/argument_default/User.php, line 64

Class

User
Default argument plugin to extract a user from request.

Namespace

Drupal\user\Plugin\views\argument_default

Code

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

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