DummyCacheContext.php in Entity Browser 8.2
File
tests/modules/entity_browser_test/src/Cache/Context/DummyCacheContext.php
View source
<?php
namespace Drupal\entity_browser_test\Cache\Context;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Cache\Context\CacheContextInterface;
class DummyCacheContext implements CacheContextInterface {
public static function getLabel() {
return t('Dummy context');
}
public function getContext() {
return "dummy";
}
public function getCacheableMetadata() {
return new CacheableMetadata();
}
}