Search for callback

  1. Search 7.x for callback
  2. Search 9.5.x for callback
  3. Search 8.9.x for callback
  4. Search 11.x for callback
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Callback class core/modules/migrate/src/Plugin/migrate/process/Callback.php Passes the source value to a callback.
callback function core/tests/Drupal/Tests/Core/Render/RendererCallbackTest.php A test render callback.

All search results

Title Object type File name Summary
ContentModerationConfigureEntityTypesForm::ajaxCallback function core/modules/content_moderation/src/Form/ContentModerationConfigureEntityTypesForm.php Ajax callback to close the modal and update the selected text.
Custom::trustedCallbacks function core/modules/views/src/Plugin/views/field/Custom.php
Datelist::valueCallback function core/lib/Drupal/Core/Datetime/Element/Datelist.php Validates the date type to adjust 12 hour time and prevent invalid dates.
If the date is valid, the date is set in the form.
DatelistElementFormTest::datelistDateCallback function core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php
DatelistElementFormTest::datelistDateCallbackTrusted function core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php
DatelistElementFormTest::testDatelistElementUntrustedCallbacks function core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php Tests that exceptions are raised if untrusted callbacks are used.
DatelistElementFormTest::trustedCallbacks function core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php
Datetime::valueCallback function core/lib/Drupal/Core/Datetime/Element/Datetime.php
DatetimeElementFormTest::datetimeDateCallback function core/tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php
DatetimeElementFormTest::datetimeDateCallbackTrusted function core/tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php
DatetimeElementFormTest::datetimeTimeCallback function core/tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php
DatetimeElementFormTest::datetimeTimeCallbackTrusted function core/tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php
DatetimeElementFormTest::testDatetimeElementUntrustedCallbacks function core/tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php Tests that deprecations are raised if untrusted callbacks are used.
DatetimeElementFormTest::trustedCallbacks function core/tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php
DisplayPluginBase::trustedCallbacks function core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
DoTrustedCallbackTrait trait core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php Ensures that only predefined methods can be used as callback methods.
DoTrustedCallbackTrait.php file core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php
DoTrustedCallbackTrait::doTrustedCallback function core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php Performs a callback.
DoTrustedCallbackTraitTest class core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php @coversDefaultClass \Drupal\Core\Security\DoTrustedCallbackTrait
@group Security
DoTrustedCallbackTraitTest.php file core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php
DoTrustedCallbackTraitTest::errorTypeProvider function core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php Data provider for tests of ::doTrustedCallback $error_type argument.
DoTrustedCallbackTraitTest::providerTestTrustedCallbacks function core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php Data provider for ::testTrustedCallbacks().
DoTrustedCallbackTraitTest::providerTestUntrustedCallbacks function core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php Data provider for ::testUntrustedCallbacks().
DoTrustedCallbackTraitTest::testException function core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php @dataProvider errorTypeProvider
DoTrustedCallbackTraitTest::testSilencedDeprecation function core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php @dataProvider errorTypeProvider
@group legacy
DoTrustedCallbackTraitTest::testTrustedCallbacks function core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php @covers ::doTrustedCallback
@dataProvider providerTestTrustedCallbacks
DoTrustedCallbackTraitTest::testUntrustedCallbacks function core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php @covers ::doTrustedCallback
@dataProvider providerTestUntrustedCallbacks
DoTrustedCallbackTraitTest::testWarning function core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php @dataProvider errorTypeProvider
@group legacy
DriverSpecificTransactionTestBase::$postTransactionCallbackAction property core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Keeps track of the post-transaction callback action executed.
DriverSpecificTransactionTestBase::rootTransactionCallback function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php A post-transaction callback for testing purposes.
DriverSpecificTransactionTestBase::testRootTransactionEndCallbackAddedWithoutTransaction function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Tests that adding a post-transaction callback fails with no transaction.
DriverSpecificTransactionTestBase::testRootTransactionEndCallbackCalledAfterDdlAndDestruction function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Tests post-transaction callback executes after a DDL statement.
DriverSpecificTransactionTestBase::testRootTransactionEndCallbackCalledAfterRollbackAndDestruction function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Tests post-transaction callback executes after transaction rollback.
DriverSpecificTransactionTestBase::testRootTransactionEndCallbackCalledOnCommit function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Tests post-transaction callback executes after transaction commit.
DummyAjaxWidget::dummyAjaxCallback function core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldWidget/DummyAjaxWidget.php Ajax callback for Dummy AJAX test.
Element::trustedCallbacks function core/modules/editor/src/Element.php
ElementInfoTestNumberBuilder::trustedCallbacks function core/modules/system/tests/modules/element_info_test/src/ElementInfoTestNumberBuilder.php
EntityAutocomplete::valueCallback function core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php
EntityFieldDefaultValueTest::testDefaultValueCallback function core/tests/Drupal/KernelTests/Core/Entity/EntityFieldDefaultValueTest.php Tests custom default value callbacks.
EntityType::$uri_callback property core/lib/Drupal/Core/Entity/EntityType.php
EntityType::getUriCallback function core/lib/Drupal/Core/Entity/EntityType.php
EntityType::setUriCallback function core/lib/Drupal/Core/Entity/EntityType.php
EntityTypeInterface::getUriCallback function core/lib/Drupal/Core/Entity/EntityTypeInterface.php Gets a callable that can be used to provide the entity URI.
EntityTypeInterface::setUriCallback function core/lib/Drupal/Core/Entity/EntityTypeInterface.php Sets a callable to use to provide the entity URI.
EntityUrlTest::providerTestToUrlUriCallback function core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php Provides data for testToUrlUriCallback().
EntityUrlTest::providerTestToUrlUriCallbackUndefined function core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php Provides data for testToUrlUriCallbackUndefined().
EntityUrlTest::testToUrlUriCallback function core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php Tests the toUrl() method with a URI callback.
EntityUrlTest::testToUrlUriCallbackUndefined function core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php Tests the toUrl() method with neither link templates nor a URI callback.
EntityViewBuilder::trustedCallbacks function core/lib/Drupal/Core/Entity/EntityViewBuilder.php
EntityViewController::trustedCallbacks function core/lib/Drupal/Core/Entity/Controller/EntityViewController.php

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