*/
public function get(array $elements) {
// @todo remove this check when https://www.drupal.org/node/2367555 lands.
- if (!$this->requestStack->getCurrentRequest()->isMethodSafe()) {
+ if (!$this->requestStack->getCurrentRequest()->isMethodCacheable()) {
return FALSE;
}
$result = parent::set($elements, $pre_bubbling_elements);
// @todo remove this check when https://www.drupal.org/node/2367555 lands.
- if (!$this->requestStack->getCurrentRequest()->isMethodSafe()) {
+ if (!$this->requestStack->getCurrentRequest()->isMethodCacheable()) {
return FALSE;
}