summaryrefslogtreecommitdiffstats
path: root/core/modules/breakpoint
diff options
context:
space:
mode:
authorcatch2014-09-25 08:30:31 +0100
committercatch2014-09-25 08:30:31 +0100
commit2c6cd929582a9abb87e0e85cbe3055d73105f4fd (patch)
tree3323586b308a5416118003aea36b0a96ef50542a /core/modules/breakpoint
parenta1a0cc86c086e8242701ef4a43fbf2398a139886 (diff)
Issue #2340123 by Wim Leers: Setting cache tags can be tricky: use strings instead of nested arrays to improve DX.
Diffstat (limited to 'core/modules/breakpoint')
-rw-r--r--core/modules/breakpoint/src/BreakpointManager.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/breakpoint/src/BreakpointManager.php b/core/modules/breakpoint/src/BreakpointManager.php
index 757f2cf..3187912 100644
--- a/core/modules/breakpoint/src/BreakpointManager.php
+++ b/core/modules/breakpoint/src/BreakpointManager.php
@@ -113,7 +113,7 @@ class BreakpointManager extends DefaultPluginManager implements BreakpointManage
$this->themeHandler = $theme_handler;
$this->setStringTranslation($string_translation);
$this->alterInfo('breakpoints');
- $this->setCacheBackend($cache_backend, 'breakpoints', array('breakpoints' => TRUE));
+ $this->setCacheBackend($cache_backend, 'breakpoints', array('breakpoints'));
}
/**
@@ -176,7 +176,7 @@ class BreakpointManager extends DefaultPluginManager implements BreakpointManage
}
}
uasort($breakpoints, array('Drupal\Component\Utility\SortArray', 'sortByWeightElement'));
- $this->cacheBackend->set($this->cacheKey . ':' . $group, $breakpoints, Cache::PERMANENT, array('breakpoints' => TRUE));
+ $this->cacheBackend->set($this->cacheKey . ':' . $group, $breakpoints, Cache::PERMANENT, array('breakpoints'));
$this->breakpointsByGroup[$group] = $breakpoints;
}
}
@@ -205,7 +205,7 @@ class BreakpointManager extends DefaultPluginManager implements BreakpointManage
$groups[$plugin_definition['group']] = $plugin_definition['group'];
}
}
- $this->cacheBackend->set($this->cacheKey . '::groups', $groups, Cache::PERMANENT, array('breakpoints' => TRUE));
+ $this->cacheBackend->set($this->cacheKey . '::groups', $groups, Cache::PERMANENT, array('breakpoints'));
}
// Get the labels. This is not cacheable due to translation.
$group_labels = array();