class TestPermissionCallbacks in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 385 - Contains \Drupal\Tests\user\Unit\PermissionHandlerTest.
Namespace
Drupal\Tests\user\UnitView source
class TestPermissionCallbacks {
public function singleDescription() {
return array(
'access_module_a' => 'single_description',
);
}
public function titleDescription() {
return array(
'access module b' => array(
'title' => 'Access B',
'description' => 'bla bla',
),
);
}
public function titleDescriptionRestrictAccess() {
return array(
'access_module_c' => array(
'title' => 'Access C',
'description' => 'bla bla',
'restrict access' => TRUE,
),
);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestPermissionCallbacks:: |
public | function | ||
TestPermissionCallbacks:: |
public | function | ||
TestPermissionCallbacks:: |
public | function |