class TrustedMethods in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php \Drupal\Tests\Core\Security\TrustedMethods
Hierarchy
- class \Drupal\Tests\Core\Security\TrustedMethods implements TrustedCallbackInterface
Expanded class hierarchy of TrustedMethods
File
- core/
tests/ Drupal/ Tests/ Core/ Security/ DoTrustedCallbackTraitTest.php, line 133
Namespace
Drupal\Tests\Core\SecurityView source
class TrustedMethods implements TrustedCallbackInterface {
public static function trustedCallbacks() {
return [
'callback',
];
}
public static function callback() {
return 'test';
}
public static function unTrustedCallback() {
return 'test';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TrustedCallbackInterface:: |
constant | Untrusted callbacks throw exceptions. | ||
TrustedCallbackInterface:: |
constant | Untrusted callbacks trigger silenced E_USER_DEPRECATION errors. | ||
TrustedCallbackInterface:: |
constant | Untrusted callbacks trigger E_USER_WARNING errors. | ||
TrustedMethods:: |
public static | function | ||
TrustedMethods:: |
public static | function |
Lists the trusted callbacks provided by the implementing class. Overrides TrustedCallbackInterface:: |
|
TrustedMethods:: |
public static | function |