You are here

public function PhpDefault::access in Views Contextual Range Filter 8

Determine if the administrator has the privileges to use this plugin

Overrides ArgumentDefaultPluginBase::access

File

src/Plugin/views/argument_default/PhpDefault.php, line 57

Class

PhpDefault
Default argument plugin to execute PHP code to return default argument value.

Namespace

Drupal\contextual_range_filter\Plugin\views\argument_default

Code

public function access() {
  return \Drupal::currentUser()
    ->hasPermission('use views php code contextual filter');
}