Search for onResponse

  1. Search 7.x for onResponse
  2. Search 9.5.x for onResponse
  3. Search 8.9.x for onResponse
  4. Search 10.3.x for onResponse
  5. Other projects
Title Object type File name Summary
ActiveLinkResponseFilter::onResponse function core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php Sets the 'is-active' class on links.
AjaxResponseSubscriber::onResponse function core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php Renders the ajax commands right before preparing the result.
CacheableJsonResponse class core/lib/Drupal/Core/Cache/CacheableJsonResponse.php A JsonResponse that contains and can expose cacheability metadata.
CacheableJsonResponse.php file core/lib/Drupal/Core/Cache/CacheableJsonResponse.php
DynamicPageCacheSubscriber::onResponse function core/modules/dynamic_page_cache/src/EventSubscriber/DynamicPageCacheSubscriber.php Stores a response in case of a Dynamic Page Cache miss, if cacheable.
ExceptionHandlingTest::testExceptionResponseGeneratedForOriginalRequest function core/tests/Drupal/KernelTests/Core/Routing/ExceptionHandlingTest.php Tests that the exception response is executed in the original context.
FormAjaxSubscriberTest::testOnExceptionResponseBuilderException function core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php Tests on exception response builder exception.
HtmxLocationResponseData class core/lib/Drupal/Core/Htmx/HtmxLocationResponseData.php Optional data object for HX-Location.
HtmxLocationResponseData.php file core/lib/Drupal/Core/Htmx/HtmxLocationResponseData.php
HtmxLocationResponseData::$cacheableMetadata property core/lib/Drupal/Core/Htmx/HtmxLocationResponseData.php Collects cache data for the URL.
HtmxLocationResponseData::getCacheableMetadata function core/lib/Drupal/Core/Htmx/HtmxLocationResponseData.php Retrieves the cacheable metadata associated with the URL.
HtmxLocationResponseData::__construct function core/lib/Drupal/Core/Htmx/HtmxLocationResponseData.php Data for HX-Location headers.
HtmxLocationResponseData::__toString function core/lib/Drupal/Core/Htmx/HtmxLocationResponseData.php Returns non-empty data, JSON encoded.
JsonApiRequestValidator::onResponse function core/modules/jsonapi/src/EventSubscriber/JsonApiRequestValidator.php Validates JSON:API requests.
MediaLibraryEditorOpener::getSelectionResponse function core/modules/media_library/src/MediaLibraryEditorOpener.php Generates a response after selecting media items in the media library.
MediaLibraryFieldWidgetOpener::getSelectionResponse function core/modules/media_library/src/MediaLibraryFieldWidgetOpener.php Generates a response after selecting media items in the media library.
MediaLibraryOpenerInterface::getSelectionResponse function core/modules/media_library/src/MediaLibraryOpenerInterface.php Generates a response after selecting media items in the media library.
ResourceResponseSubscriber::onResponse function core/modules/jsonapi/src/EventSubscriber/ResourceResponseSubscriber.php Serializes ResourceResponse responses' data, and removes that data.
ResourceResponseSubscriber::onResponse function core/modules/rest/src/EventSubscriber/ResourceResponseSubscriber.php Serializes ResourceResponse responses' data, and removes that data.
ResourceResponseSubscriberTest::testOnResponseWithCacheableResponse function core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php Tests on response with cacheable response.
ResourceResponseSubscriberTest::testOnResponseWithUncacheableResponse function core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php Tests on response with uncacheable response.
ResourceResponseTestTrait::getEmptyCollectionResponse function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Gets a generic empty collection response.
ResourceResponseValidator::onResponse function core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php Validates JSON:API responses.
ResourceTestBase::getExpectedCollectionResponse function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Returns a JSON:API collection document for the expected entities.
RssResponseRelativeUrlFilter::onResponse function core/lib/Drupal/Core/EventSubscriber/RssResponseRelativeUrlFilter.php Converts relative URLs to absolute URLs.
RssResponseRelativeUrlFilterTest::providerTestOnResponse function core/tests/Drupal/Tests/Core/EventSubscriber/RssResponseRelativeUrlFilterTest.php
RssResponseRelativeUrlFilterTest::testOnResponse function core/tests/Drupal/Tests/Core/EventSubscriber/RssResponseRelativeUrlFilterTest.php Tests on response.
SecurityAdvisoriesFetcherTest::testInvalidJsonResponse function core/modules/system/tests/src/Kernel/SecurityAdvisories/SecurityAdvisoriesFetcherTest.php Tests that invalid JSON feed responses are not stored.

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