Skip to content
Snippets Groups Projects

[#3519377] Drupal 11 compatibility fixes.

Merged Ted Cooper requested to merge issue/views_advanced_cache-3519377:2.x-3519377-d11 into 8.x-1.x
Files
4
@@ -9,8 +9,10 @@ use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Datetime\DateFormatterInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Link;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Url;
use Drupal\Core\Utility\Token;
use Drupal\views\Attribute\ViewsCache;
use Drupal\views\Plugin\views\cache\CachePluginBase;
use Drupal\views\ResultRow;
use Drupal\views\Views;
@@ -24,13 +26,12 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
* lifetime (which is used to calculate max-age).
*
* @ingroup views_cache_plugins
*
* @ViewsCache(
* id = "advanced_views_cache",
* title = @Translation("Advanced Caching"),
* help = @Translation("Caching based on tags, context, and max-age. Caches will persist until any related cache tags are invalidated or the max-age is reached.")
* )
*/
#[ViewsCache(
id: 'advanced_views_cache',
title: new TranslatableMarkup('Advanced Caching'),
help: new TranslatableMarkup('Caching based on tags, context, and max-age. Caches will persist until any related cache tags are invalidated or the max-age is reached.'),
)]
class AdvancedViewsCache extends CachePluginBase {
/**
Loading