![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/framework/View/Model/Layout/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ 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; } }