function TestPermissionCallbacks::titleProvider

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

Callback that returns the title.

File

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

Class

TestPermissionCallbacks
Provider for testing permissions callbacks.

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.