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 @covers ::onException
JsonApiRequestValidator::onResponse function core/modules/jsonapi/src/EventSubscriber/JsonApiRequestValidator.php Validates JSON:API requests.
MediaLibraryEditorOpener::getSelectionResponse function core/modules/media_library/src/MediaLibraryEditorOpener.php
MediaLibraryFieldWidgetOpener::getSelectionResponse function core/modules/media_library/src/MediaLibraryFieldWidgetOpener.php
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 @covers ::onResponse
@covers ::getResponseFormat
@covers ::renderResponseBody
@covers ::flattenResponse
ResourceResponseSubscriberTest::testOnResponseWithUncacheableResponse function core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php @covers ::onResponse
@covers ::getResponseFormat
@covers ::renderResponseBody
@covers ::flattenResponse
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.
RssResponseCdata::onResponse function core/lib/Drupal/Core/EventSubscriber/RssResponseCdata.php Wraps RSS descriptions in CDATA.
RssResponseCdataTest::providerTestOnResponse function core/tests/Drupal/Tests/Core/EventSubscriber/RssResponseCdataTest.php Provides known RSS feeds to compare.
RssResponseCdataTest::testOnResponse function core/tests/Drupal/Tests/Core/EventSubscriber/RssResponseCdataTest.php @dataProvider providerTestOnResponse
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 @dataProvider providerTestOnResponse
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.