저자: Aurelien FOUCRET (aurelien.foucret@smile.fr)
상속: extends Magento\Framework\View\Element\Template, implements Magento\LayeredNavigation\Block\Navigation\FilterRendererInterface
예제 #1
0
 /**
  * Constructor.
  *
  * @param Context      $context      Template context.
  * @param SwatchHelper $swatchHelper Swatch helper.
  * @param array        $data         Custom data.
  */
 public function __construct(Context $context, SwatchHelper $swatchHelper, array $data = [])
 {
     parent::__construct($context, $data);
     $this->swatchHelper = $swatchHelper;
 }
예제 #2
0
 /**
  *
  * @param Context          $context      Template context.
  * @param EncoderInterface $jsonEncoder  JSON Encoder.
  * @param FormatInterface  $localeFormat Price format config.
  * @param array            $data         Custom data.
  */
 public function __construct(Context $context, EncoderInterface $jsonEncoder, FormatInterface $localeFormat, array $data = [])
 {
     parent::__construct($context, $data);
     $this->jsonEncoder = $jsonEncoder;
     $this->localeFormat = $localeFormat;
 }