class TrustedMethods
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php \Drupal\Tests\Core\Security\TrustedMethods
- 8.9.x core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php \Drupal\Tests\Core\Security\TrustedMethods
- 10 core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php \Drupal\Tests\Core\Security\TrustedMethods
Hierarchy
- class \Drupal\Tests\Core\Security\TrustedMethods implements \Drupal\Core\Security\TrustedCallbackInterface
Expanded class hierarchy of TrustedMethods
File
-
core/
tests/ Drupal/ Tests/ Core/ Security/ DoTrustedCallbackTraitTest.php, line 129
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 attributeCallback() {
return 'test';
}
public static function unTrustedCallback() {
return 'test';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
TrustedCallbackInterface::THROW_EXCEPTION | constant | Untrusted callbacks throw exceptions. | ||
TrustedCallbackInterface::TRIGGER_SILENCED_DEPRECATION | constant | Untrusted callbacks trigger silenced E_USER_DEPRECATION errors. | ||
TrustedMethods::attributeCallback | public static | function | ||
TrustedMethods::callback | public static | function | ||
TrustedMethods::trustedCallbacks | public static | function | Lists the trusted callbacks provided by the implementing class. | Overrides TrustedCallbackInterface::trustedCallbacks |
TrustedMethods::unTrustedCallback | public static | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.