function TestPermissionCallbacks::titleDescription
Callback that returns the title and description.
File
-
core/
modules/ user/ tests/ src/ Unit/ PermissionHandlerTest.php, line 374
Class
- TestPermissionCallbacks
- Provider for testing permissions callbacks.
Namespace
Drupal\Tests\user\UnitCode
public function titleDescription() {
return [
'access module b' => [
'title' => 'Access B',
'description' => 'bla bla',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.