class TrustedMethods
Same name and namespace in other branches
- 11.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
- 8.9.x core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php \Drupal\Tests\Core\Security\TrustedMethods
Hierarchy
- class \Drupal\Tests\Core\Security\TrustedMethods extends \Drupal\Core\Security\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';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.