Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     return ['input_type' => $this->inputType(), 'placeholder' => Helpers::tryTranslate($this->get('placeholder'))] + parent::toArray();
 }
Exemplo n.º 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();
 }
Exemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function extract($model)
 {
     $value = parent::extract($model);
     return $value === null ? $value : $this->cast($value);
 }