public function Php::access

Same name in this branch
  1. 8.x drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument_validator/Php.php \Drupal\views\Plugin\views\argument_validator\Php::access()
  2. 8.x drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument_default/Php.php \Drupal\views\Plugin\views\argument_default\Php::access()

Only let users with PHP block visibility permissions set/modify this validate plugin.

Overrides ArgumentValidatorPluginBase::access

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument_validator/Php.php, line 48
Definition of Drupal\views\Plugin\views\argument_validator\Php.

Class

Php
Provide PHP code to validate whether or not an argument is ok.

Namespace

Drupal\views\Plugin\views\argument_validator

Code

public function access() {
  return user_access('use PHP for settings');
}