protected function compute_options(array &$field_options) { foreach ($field_options as $attribute => $value) { $attribute = strtolower($attribute); switch ($attribute) { case 'multiple': $this->multiple = (bool) $value; unset($field_options['multiple']); break; } } parent::compute_options($field_options); }
protected function compute_options(array &$field_options) { foreach ($field_options as $attribute => $value) { $attribute = strtolower($attribute); switch ($attribute) { case 'method': $this->method = $value; unset($field_options['method']); break; case 'file': $this->file = $value; unset($field_options['file']); break; case 'name_parameter': $this->name_parameter = $value; unset($field_options['name_parameter']); break; } } parent::compute_options($field_options); }