You are here

protected function CurrentUserOrPermission::defineOptions in Ubercart 8.4

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

Overrides ArgumentValidatorPluginBase::defineOptions

File

uc_order/src/Plugin/views/argument_validator/CurrentUserOrPermission.php, line 23

Class

CurrentUserOrPermission
Validate whether an argument is the current user or has a permission.

Namespace

Drupal\uc_order\Plugin\views\argument_validator

Code

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