abstract function AccessPluginBase::get_access_callback

Determine the access callback and arguments.

This information will be embedded in the menu in order to reduce performance hits during menu item access testing, which happens a lot.

Return value

array The first item of the array should be the function to call,and the second item should be an array of arguments. The first item may also be TRUE (bool only) which will indicate no access control.

5 methods override AccessPluginBase::get_access_callback()
DynamicTest::get_access_callback in drupal/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/access/DynamicTest.php
Determine the access callback and arguments.
None::get_access_callback in drupal/core/modules/views/lib/Drupal/views/Plugin/views/access/None.php
Implements Drupal\views\Plugin\views\access\AccessPluginBase::get_access_callback().
Permission::get_access_callback in drupal/core/modules/user/lib/Drupal/user/Plugin/views/access/Permission.php
Determine the access callback and arguments.
Role::get_access_callback in drupal/core/modules/user/lib/Drupal/user/Plugin/views/access/Role.php
Determine the access callback and arguments.
StaticTest::get_access_callback in drupal/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/access/StaticTest.php
Determine the access callback and arguments.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/access/AccessPluginBase.php, line 95
Definition of Drupal\views\Plugin\views\access\AccessPluginBase.

Class

AccessPluginBase
The base plugin to handle access control.

Namespace

Drupal\views\Plugin\views\access

Code

abstract function get_access_callback();