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