protected function add_field($field) { $this->fields[] = $field->get_settings($this); return $field; }