예제 #1
0
 /**
  * @return AbstractBlock
  */
 protected function _prepareLayout()
 {
     if ($head = $this->getLayout()->getBlock('head')) {
         $head->setCanLoadCalendarJs(true);
     }
     return parent::_prepareLayout();
 }
예제 #2
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Framework\Pricing\Helper\Data $pricingHelper
  * @param \Magento\Catalog\Helper\Data $catalogData
  * @param \Magento\Catalog\Model\Product\Option\Type\Date $catalogProductOptionTypeDate
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\Pricing\Helper\Data $pricingHelper, \Magento\Catalog\Helper\Data $catalogData, \Magento\Catalog\Model\Product\Option\Type\Date $catalogProductOptionTypeDate, array $data = [])
 {
     $this->_catalogProductOptionTypeDate = $catalogProductOptionTypeDate;
     parent::__construct($context, $pricingHelper, $catalogData, $data);
 }
예제 #3
0
파일: Select.php 프로젝트: aiesh/magento2
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Core\Helper\Data $coreHelper
  * @param \Magento\Catalog\Helper\Data $catalogData
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Core\Helper\Data $coreHelper, \Magento\Catalog\Helper\Data $catalogData, array $data = array())
 {
     $this->_coreHelper = $coreHelper;
     parent::__construct($context, $coreHelper, $catalogData, $data);
 }