TrustedCallbackInterface::TRIGGER_WARNING

Same name in other branches
  1. 9 core/lib/Drupal/Core/Security/TrustedCallbackInterface.php \Drupal\Core\Security\TrustedCallbackInterface::TRIGGER_WARNING
  2. 8.9.x core/lib/Drupal/Core/Security/TrustedCallbackInterface.php \Drupal\Core\Security\TrustedCallbackInterface::TRIGGER_WARNING

Untrusted callbacks trigger E_USER_WARNING errors.

Deprecated

in drupal:10.3.0 and is removed from drupal:11.0.0. Use TrustedCallbackInterface::THROW_EXCEPTION or TrustedCallbackInterface::TRIGGER_SILENCED_DEPRECATION instead.

See also

https://www.drupal.org/node/3427367

File

core/lib/Drupal/Core/Security/TrustedCallbackInterface.php, line 26

Class

TrustedCallbackInterface
Interface to declare trusted callbacks.

Namespace

Drupal\Core\Security

Code

const TRIGGER_WARNING = 'warning';

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.