Esempio n. 1
0
 /**
  * get additional options for edit form
  *
  * @return array
  */
 public function getAdditionalEditFormOptions()
 {
     $options = parent::getAdditionalEditFormOptions();
     $underscore = $this->getUnderscore();
     $options[] = '\'values\' => array_merge([\'\' => \'\'], $this->' . $underscore . 'countryOptions->toOptionArray()),';
     return $options;
 }
Esempio n. 2
0
 /**
  * get addition option for edit form
  *
  * @return array
  */
 public function getAdditionalEditFormOptions()
 {
     $options = parent::getAdditionalEditFormOptions();
     $underscore = $this->getUnderscore();
     $options[] = '\'values\' => $this->' . $underscore . 'booleanOptions->toOptionArray(),';
     return $options;
 }
Esempio n. 3
0
 /**
  * get addition option for edit form
  *
  * @return array
  */
 public function getAdditionalEditFormOptions()
 {
     if ($this->getAttribute()->getData('editor')) {
         $underscore = $this->getUnderscore();
         return ['\'config\'    => $this->' . $underscore . 'wysiwygConfig->getConfig()'];
     }
     return parent::getAdditionalEditFormOptions();
 }
Esempio n. 4
0
 /**
  * get addition option for edit form
  *
  * @return array
  */
 public function getAdditionalEditFormOptions()
 {
     $options = parent::getAdditionalEditFormOptions();
     $options[] = '\'date_format\' => $this->_localeDate->getDateFormat(';
     $options[] = $this->getPadding() . '{{class IntlDateFormatter}}::SHORT';
     $options[] = '),';
     $options[] = '\'class\' => \'validate-date\',';
     return $options;
 }
Esempio n. 5
0
 /**
  * get addition option for edit form
  *
  * @return array
  */
 public function getAdditionalEditFormOptions()
 {
     $options = parent::getAdditionalEditFormOptions();
     $attribute = $this->getAttribute();
     $underscore = $this->getUnderscore();
     if ($attribute->getForcedSourceModel()) {
         $sourceModel = $attribute->getForcedSourceModel();
     } else {
         $sourceModel = $attribute->getCodeCamelCase() . 'Options';
     }
     $options[] = '\'values\' => array_merge([\'\' => \'\'], $this->' . $underscore . $sourceModel . '->toOptionArray()),';
     return $options;
 }