/** * @return string */ public function renderHeadContent() { $result = ''; $result .= $this->renderMetadata(); $result .= $this->renderTitle(); $this->prepareFavicon(); $result .= $this->renderAssets($this->getAvailableResultGroups()); $result .= $this->pageConfig->getIncludes(); return $result; }
public function testGetIncludes() { $xml = ' <script type="text/javascript"> Fieldset.addToPrefix(1); </script> '; $this->scopeConfig->expects($this->once())->method('getValue')->with('design/head/includes', 'store')->will($this->returnValue($xml)); $this->assertEquals($xml, $this->model->getIncludes()); }
/** * {@inheritdoc} */ public function getIncludes() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getIncludes'); if (!$pluginInfo) { return parent::getIncludes(); } else { return $this->___callPlugins('getIncludes', func_get_args(), $pluginInfo); } }