You are here

protected function CurrentUser::defineOptions in Commerce Core 8.2

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

Overrides ArgumentValidatorPluginBase::defineOptions

File

src/Plugin/views/argument_validator/CurrentUser.php, line 103

Class

CurrentUser
Validates whether the argument matches the current user.

Namespace

Drupal\commerce\Plugin\views\argument_validator

Code

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