class TestPermissionCallbacks
Same name in other branches
- 9 core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestPermissionCallbacks
- 8.9.x core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestPermissionCallbacks
- 11.x core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestPermissionCallbacks
Hierarchy
- class \Drupal\Tests\user\Unit\TestPermissionCallbacks
Expanded class hierarchy of TestPermissionCallbacks
File
-
core/
modules/ user/ tests/ src/ Unit/ PermissionHandlerTest.php, line 344
Namespace
Drupal\Tests\user\UnitView source
class TestPermissionCallbacks {
public function singleDescription() {
return [
'access_module_a' => 'single_description',
];
}
public function titleDescription() {
return [
'access module b' => [
'title' => 'Access B',
'description' => 'bla bla',
],
];
}
public function titleDescriptionRestrictAccess() {
return [
'access_module_c' => [
'title' => 'Access C',
'description' => 'bla bla',
'restrict access' => TRUE,
],
];
}
public function titleProvider() {
return [
'access module a via module b' => [
'title' => 'Access A via B',
'provider' => 'module_a',
],
];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TestPermissionCallbacks::singleDescription | public | function | |
TestPermissionCallbacks::titleDescription | public | function | |
TestPermissionCallbacks::titleDescriptionRestrictAccess | public | function | |
TestPermissionCallbacks::titleProvider | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.