/** * @return AbstractBlock */ protected function _prepareLayout() { if ($head = $this->getLayout()->getBlock('head')) { $head->setCanLoadCalendarJs(true); } return parent::_prepareLayout(); }
/** * @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); }
/** * @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); }