function TestPermissionCallbacks::titleDescriptionRestrictAccess

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

File

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

Class

TestPermissionCallbacks

Namespace

Drupal\Tests\user\Unit

Code

public function titleDescriptionRestrictAccess() {
    return [
        'access_module_c' => [
            'title' => 'Access C',
            'description' => 'bla bla',
            'restrict access' => TRUE,
        ],
    ];
}

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