示例#1
0
 /**
  * {@inheritdoc}
  */
 public function getCacheKeyInfo()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getCacheKeyInfo');
     if (!$pluginInfo) {
         return parent::getCacheKeyInfo();
     } else {
         return $this->___callPlugins('getCacheKeyInfo', func_get_args(), $pluginInfo);
     }
 }
示例#2
0
 public function testGetCacheKeyInfo()
 {
     $this->assertEquals(['BLOCK_TPL', 'default', $this->_block->getTemplateFile(), 'template' => null, 'item_renders' => 'default|Magento\\Checkout\\Block\\Cart\\Item\\Renderer|cart/item/default.phtml'], $this->_block->getCacheKeyInfo());
 }