class CacheableAjaxResponse

Same name in other branches
  1. 10 core/lib/Drupal/Core/Cache/CacheableAjaxResponse.php \Drupal\Core\Cache\CacheableAjaxResponse

A AjaxResponse that contains and can expose cacheability metadata.

Supports Drupal's caching concepts: cache tags for invalidation and cache contexts for variations.

Hierarchy

Expanded class hierarchy of CacheableAjaxResponse

See also

\Drupal\Core\Cache\Cache

\Drupal\Core\Cache\CacheableMetadata

\Drupal\Core\Cache\CacheableResponseTrait

1 file declares its use of CacheableAjaxResponse
PageCacheAcceptHeaderController.php in core/modules/system/tests/modules/system_test/src/Controller/PageCacheAcceptHeaderController.php

File

core/lib/Drupal/Core/Cache/CacheableAjaxResponse.php, line 17

Namespace

Drupal\Core\Cache
View source
class CacheableAjaxResponse extends AjaxResponse implements CacheableResponseInterface {
    use CacheableResponseTrait;

}

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