Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / views / src / Plugin / views / style / Table.php
index bbc9a1ea3dac81ac11d09ef6da0bc2d6c2bad5a2..0058bdc4f059296ee671e3287d5ef694fc85adfe 100644 (file)
@@ -3,6 +3,7 @@
 namespace Drupal\views\Plugin\views\style;
 
 use Drupal\Component\Utility\Html;
+use Drupal\Core\Cache\Cache;
 use Drupal\Core\Cache\CacheableDependencyInterface;
 use Drupal\Core\Form\FormStateInterface;
 use Drupal\views\Plugin\views\wizard\WizardInterface;
@@ -23,7 +24,7 @@ use Drupal\views\Plugin\views\wizard\WizardInterface;
 class Table extends StylePluginBase implements CacheableDependencyInterface {
 
   /**
-   * Does the style plugin for itself support to add fields to it's output.
+   * Does the style plugin for itself support to add fields to its output.
    *
    * @var bool
    */
@@ -423,7 +424,7 @@ class Table extends StylePluginBase implements CacheableDependencyInterface {
    * {@inheritdoc}
    */
   public function getCacheMaxAge() {
-    return 0;
+    return Cache::PERMANENT;
   }
 
   /**