function TestPermissionCallbacks::titleProvider

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

File

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

Class

TestPermissionCallbacks

Namespace

Drupal\Tests\user\Unit

Code

public function titleProvider() {
    return [
        'access module a via module b' => [
            'title' => 'Access A via B',
            'provider' => 'module_a',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.