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. 10 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 388

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.