/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/View/Model/Layout/CacheKey.php
43 строки
902 B
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2017 Adobe * All Rights Reserved. */ namespace Magento\Framework\View\Model\Layout; /** * Layout cache key model */ class CacheKey implements \Magento\Framework\View\Layout\LayoutCacheKeyInterface { /** * Cache keys to be able to generate different cache id for same handles * * @var array */ private $cacheKeys = []; /** * Add cache key(s) for generating different cache id for same handles * * @param array|string $cacheKeys * @return void */ public function addCacheKeys($cacheKeys) { if (!is_array($cacheKeys)) { $cacheKeys = [$cacheKeys]; } $this->cacheKeys = array_merge($this->cacheKeys, $cacheKeys); } /** * Return cache keys array * * @return array */ public function getCacheKeys() { return $this->cacheKeys; } }