Esempio n. 1
0
 /**
  * Create correct date field
  *
  * @return string
  */
 public function getFieldHtml()
 {
     $this->dateElement->setData(['name' => $this->getHtmlId(), 'id' => $this->getHtmlId(), 'class' => $this->getHtmlClass(), 'value' => $this->getValue(), 'date_format' => $this->getDateFormat(), 'image' => $this->getViewFileUrl('Magento_Theme::calendar.png'), 'years_range' => '-120y:c+nn', 'max_date' => '-1d', 'change_month' => 'true', 'change_year' => 'true', 'show_on' => 'both']);
     return $this->dateElement->getHtml();
 }
Esempio n. 2
0
 /**
  * Create correct date field
  *
  * @return string
  */
 public function getFieldHtml()
 {
     $this->dateElement->setData(['name' => $this->getHtmlId(), 'id' => $this->getHtmlId(), 'class' => $this->getHtmlClass(), 'value' => $this->getValue(), 'date_format' => $this->getDateFormat(), 'image' => $this->getViewFileUrl('Magento_Theme::calendar.png')]);
     return $this->dateElement->getHtml();
 }