You are here

public function Php::access in Views (for Drupal 7) 8.3

Same name in this branch
  1. 8.3 lib/Drupal/views/Plugin/views/argument_default/Php.php \Drupal\views\Plugin\views\argument_default\Php::access()
  2. 8.3 lib/Drupal/views/Plugin/views/argument_validator/Php.php \Drupal\views\Plugin\views\argument_validator\Php::access()

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

Overrides ArgumentDefaultPluginBase::access

File

lib/Drupal/views/Plugin/views/argument_default/Php.php, line 49
Definition of Drupal\views\Plugin\views\argument_default\Php.

Class

Php
Default argument plugin to provide a PHP code block.

Namespace

Drupal\views\Plugin\views\argument_default

Code

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