You are here

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

Retrieve the options when this is a new access control plugin

Overrides AccessPluginBase::defineOptions

File

lib/Views/user/Plugin/views/access/Permission.php, line 50
Definition of Views\user\Plugin\views\access\Permission.

Class

Permission
Access plugin that provides permission-based access control.

Namespace

Views\user\Plugin\views\access

Code

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