Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     return ['input_type' => $this->inputType(), 'placeholder' => Helpers::tryTranslate($this->get('placeholder'))] + parent::toArray();
 }
Beispiel #2
0
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     return ['prompt' => Helpers::tryTranslate($this->get('prompt')), 'items' => $this->translateItems($this->getItems()), 'multiple' => $this->get('multiple', false)] + parent::toArray();
 }
Beispiel #3
0
 /**
  * {@inheritdoc}
  */
 public function extract($model)
 {
     $value = parent::extract($model);
     return $value === null ? $value : $this->cast($value);
 }