W3cubDocs

/Drupal 8

trait UnchangingCacheableDependencyTrait

Trait to implement CacheableDependencyInterface for unchanging objects.

Hierarchy

See also

\Drupal\Core\Cache\CacheableDependencyInterface

File

core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php, line 10

Namespace

Drupal\Core\Cache

Members

Name Modifiers Type Description
UnchangingCacheableDependencyTrait::getCacheContexts public function The cache contexts associated with this object. Overrides CacheableDependencyInterface::getCacheContexts
UnchangingCacheableDependencyTrait::getCacheMaxAge public function The maximum age for which this object may be cached. Overrides CacheableDependencyInterface::getCacheMaxAge
UnchangingCacheableDependencyTrait::getCacheTags public function The cache tags associated with this object. Overrides CacheableDependencyInterface::getCacheTags

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cache!UnchangingCacheableDependencyTrait.php/trait/UnchangingCacheableDependencyTrait/8.1.x