/** * {@inheritdoc} */ public function getTemplateFile($template = null) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getTemplateFile'); if (!$pluginInfo) { return parent::getTemplateFile($template); } else { return $this->___callPlugins('getTemplateFile', func_get_args(), $pluginInfo); } }
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()); }