Ejemplo n.º 1
0
 /**
  * @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;
 }
Ejemplo n.º 2
0
 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());
 }
Ejemplo n.º 3
0
 /**
  * {@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);
     }
 }