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 10.3.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
Custom::trustedCallbacks function core/modules/views/src/Plugin/views/field/Custom.php Lists the trusted callbacks provided by the implementing class.
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 Lists the trusted callbacks provided by the implementing class.
Datetime::valueCallback function core/lib/Drupal/Core/Datetime/Element/Datetime.php Determines how user input is mapped to an element's #value property.
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 Lists the trusted callbacks provided by the implementing class.
DisplayPluginBase::trustedCallbacks function core/modules/views/src/Plugin/views/display/DisplayPluginBase.php Lists the trusted callbacks provided by the implementing class.
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
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::testRootTransactionEndCallbackCalledAfterDdlAndRollbackForTransactionalDdlDatabase function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Tests post-transaction rollback 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.
DriverSpecificTransactionTestBase::testRootTransactionEndCallbackFailureUponDdlAndRollbackForNonTransactionalDdlDatabase function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Tests post-transaction rollback failure after a DDL statement.
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 Lists the trusted callbacks provided by the implementing class.
ElementInfoTestNumberBuilder::trustedCallbacks function core/modules/system/tests/modules/element_info_test/src/ElementInfoTestNumberBuilder.php Lists the trusted callbacks provided by the implementing class.
EntityAutocomplete::valueCallback function core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php Determines how user input is mapped to an element's #value property.
EntityFieldDefaultValueTest::testDefaultValueCallback function core/tests/Drupal/KernelTests/Core/Entity/EntityFieldDefaultValueTest.php Tests custom default value callbacks.
EntityReference::getValueOptionsCallback function core/modules/views/src/Plugin/views/filter/EntityReference.php Returns the value options for a select widget.
EntityType::$uri_callback property core/lib/Drupal/Core/Entity/EntityType.php
EntityType::getUriCallback function core/lib/Drupal/Core/Entity/EntityType.php Gets a callable that can be used to provide the entity URI.
EntityType::setUriCallback function core/lib/Drupal/Core/Entity/EntityType.php Sets a callable to use to provide the entity URI.
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 Lists the trusted callbacks provided by the implementing class.

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