class TestPermissionHandler in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestPermissionHandler
Hierarchy
- class \Drupal\user\PermissionHandler implements PermissionHandlerInterface uses StringTranslationTrait
- class \Drupal\Tests\user\Unit\TestPermissionHandler
Expanded class hierarchy of TestPermissionHandler
File
- core/
modules/ user/ tests/ src/ Unit/ PermissionHandlerTest.php, line 366 - Contains \Drupal\Tests\user\Unit\PermissionHandlerTest.
Namespace
Drupal\Tests\user\UnitView source
class TestPermissionHandler extends PermissionHandler {
/**
* Test module data.
*
* @var array
*/
protected $systemModuleData;
protected function systemRebuildModuleData() {
return $this->systemModuleData;
}
public function setSystemRebuildModuleData(array $extensions) {
$this->systemModuleData = $extensions;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PermissionHandler:: |
protected | property | The controller resolver. | |
PermissionHandler:: |
protected | property | The module handler. | |
PermissionHandler:: |
protected | property | The YAML discovery class to find all .permissions.yml files. | |
PermissionHandler:: |
protected | function | Builds all permissions provided by .permissions.yml files. | |
PermissionHandler:: |
protected | function | Returns all module names. | |
PermissionHandler:: |
public | function |
Gets all available permissions. Overrides PermissionHandlerInterface:: |
|
PermissionHandler:: |
protected | function | Gets the YAML discovery. | |
PermissionHandler:: |
public | function |
Determines whether a module provides some permissions. Overrides PermissionHandlerInterface:: |
|
PermissionHandler:: |
protected | function | Sorts the given permissions by provider name and title. | |
PermissionHandler:: |
public | function | Constructs a new PermissionHandler. | |
StringTranslationTrait:: |
protected | property | The string translation service. | |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. | |
TestPermissionHandler:: |
protected | property | Test module data. | |
TestPermissionHandler:: |
public | function | ||
TestPermissionHandler:: |
protected | function |
Wraps system_rebuild_module_data() Overrides PermissionHandler:: |