/**
  * {@inheritdoc}
  */
 public function toHtml()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'toHtml');
     if (!$pluginInfo) {
         return parent::toHtml();
     } else {
         return $this->___callPlugins('toHtml', func_get_args(), $pluginInfo);
     }
 }
Example #2
0
 /**
  * Produce and return block's html output
  *
  * @codeCoverageIgnore
  * @return string
  */
 public function toHtml()
 {
     $this->initIsProductHasSwatchAttribute();
     $this->setTemplate($this->getRendererTemplate());
     return parent::toHtml();
 }