function TrustedCallbackInterface::trustedCallbacks

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Security/TrustedCallbackInterface.php \Drupal\Core\Security\TrustedCallbackInterface::trustedCallbacks()
  2. 10 core/lib/Drupal/Core/Security/TrustedCallbackInterface.php \Drupal\Core\Security\TrustedCallbackInterface::trustedCallbacks()
  3. 9 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()

7 methods override TrustedCallbackInterface::trustedCallbacks()
BubblingTest::trustedCallbacks in core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php
Lists the trusted callbacks provided by the implementing class.
RenderPlaceholderMessageTestController::trustedCallbacks in core/modules/system/tests/modules/render_placeholder_message_test/src/RenderPlaceholderMessageTestController.php
Lists the trusted callbacks provided by the implementing class.
RouteProcessorCsrf::trustedCallbacks in core/lib/Drupal/Core/Access/RouteProcessorCsrf.php
Lists the trusted callbacks provided by the implementing class.
ShortcutLazyBuilders::trustedCallbacks in core/modules/shortcut/src/ShortcutLazyBuilders.php
Lists the trusted callbacks provided by the implementing class.
TestCallables::trustedCallbacks in core/tests/Drupal/Tests/Core/Render/RendererTest.php
Lists the trusted callbacks provided by the implementing class.

... See full list

File

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

Class

TrustedCallbackInterface
Interface to declare trusted callbacks.

Namespace

Drupal\Core\Security

Code

public static function trustedCallbacks();

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