Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TrustedCallbackInterface.php

function 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()

26 methods override TrustedCallbackInterface::trustedCallbacks()
AccountForm::trustedCallbacks in core/modules/user/src/AccountForm.php
Lists the trusted callbacks provided by the implementing class.
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.
CommentLazyBuilders::trustedCallbacks in core/modules/comment/src/CommentLazyBuilders.php
Lists the trusted callbacks provided by the implementing class.
Element::trustedCallbacks in core/modules/editor/src/Element.php
Lists the trusted callbacks provided by the implementing class.

... See full list

File

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

Class

TrustedCallbackInterface
Interface to declare trusted callbacks.

Namespace

Drupal\Core\Security

Code

public static function trustedCallbacks();
RSS feed
Powered by Drupal