class TrustedMethods

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php \Drupal\Tests\Core\Security\TrustedMethods
  2. 8.9.x core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php \Drupal\Tests\Core\Security\TrustedMethods
  3. 11.x core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php \Drupal\Tests\Core\Security\TrustedMethods

Hierarchy

Expanded class hierarchy of TrustedMethods

File

core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php, line 140

Namespace

Drupal\Tests\Core\Security
View 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 Deprecated 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.
TrustedCallbackInterface::TRIGGER_WARNING Deprecated constant Untrusted callbacks trigger E_USER_WARNING 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.