function TrustedCallbackInterface::trustedCallbacks
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Security/TrustedCallbackInterface.php \Drupal\Core\Security\TrustedCallbackInterface::trustedCallbacks()
Lists the trusted callbacks provided by the implementing class.
Trusted callbacks are public methods on the implementing class and can be invoked via \Drupal\Core\Security\DoTrustedCallbackTrait::doTrustedCallback().
Return value
string[] List of method names implemented by the class that can be used as trusted callbacks.
See also
\Drupal\Core\Security\DoTrustedCallbackTrait::doTrustedCallback()
6 methods override TrustedCallbackInterface::trustedCallbacks()
- AddFormBase::trustedCallbacks in core/
modules/ media_library/ src/ Form/ AddFormBase.php - Lists the trusted callbacks provided by the implementing class.
- ClaroPreRender::trustedCallbacks in core/
themes/ claro/ src/ ClaroPreRender.php - Lists the trusted callbacks provided by the implementing class.
- MediaEmbed::trustedCallbacks in core/
modules/ media/ src/ Plugin/ Filter/ MediaEmbed.php - Lists the trusted callbacks provided by the implementing class.
- MediaLibraryWidget::trustedCallbacks in core/
modules/ media_library/ src/ Plugin/ Field/ FieldWidget/ MediaLibraryWidget.php - Lists the trusted callbacks provided by the implementing class.
- OliveroPreRender::trustedCallbacks in core/
themes/ olivero/ src/ OliveroPreRender.php - Lists the trusted callbacks provided by the implementing class.
File
-
core/
lib/ Drupal/ Core/ Security/ TrustedCallbackInterface.php, line 40
Class
- TrustedCallbackInterface
- Interface to declare trusted callbacks.
Namespace
Drupal\Core\SecurityCode
public static function trustedCallbacks();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.