/** * Render this field as HTML, using keyword args as additional attributes * * This delegates rendering to {@link WTForms\DefaultMeta\render_field} * whose default behavior is to call the field's widget, passing any * keyword arguments from this call to the widget. * * In all of WTForms HTML widgets, the keyword arguments are turned to * HTML attributes, though in theory a widget is free to do anything it * wants with the supplied keyword arguments, and widgets don't have to * even do anything related to HTML * * @param array $options * * @return mixed */ public function __invoke($options = []) { return $this->meta->renderField($this, $options); }