function HtmxLocationResponseData::getCacheableMetadata

Retrieves the cacheable metadata associated with the URL.

Return value

\Drupal\Core\Cache\CacheableMetadata The cacheable metadata instance.

File

core/lib/Drupal/Core/Htmx/HtmxLocationResponseData.php, line 88

Class

HtmxLocationResponseData
Optional data object for HX-Location.

Namespace

Drupal\Core\Htmx

Code

public function getCacheableMetadata() : CacheableMetadata {
  return $this->cacheableMetadata;
}

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