function TestPermissionCallbacks::titleDescription

Same name in other branches
  1. 8.9.x core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestPermissionCallbacks::titleDescription()
  2. 10 core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestPermissionCallbacks::titleDescription()
  3. 11.x core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestPermissionCallbacks::titleDescription()

File

core/modules/user/tests/src/Unit/PermissionHandlerTest.php, line 346

Class

TestPermissionCallbacks

Namespace

Drupal\Tests\user\Unit

Code

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.