Allows to add cacheability metadata to an object for the current runtime.
This must be used when changing an object in a way that affects its cacheability. For example, when changing the active translation of an entity based on the current content language then a cache context for that must be added.
© 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!RefinableCacheableDependencyInterface.php/interface/RefinableCacheableDependencyInterface/8.1.x