getItems() as $item) { $this->items[$item->getScope()][$item->getIdentifier()] = $item; } $this->setCacheability($source); // The (persistent) cache contexts attached to the permissions are only // used internally to store the permissions in the VariationCache. We strip // these cache contexts when the calculated permissions get converted into a // value object here so that they will never bubble up by accident. $this->cacheContexts = []; } }