/** * Binds the given input with its title * @param Element $element * @param $label */ protected function _makeInput(Element $element, $label, $defaultValue) { if (null !== $label) { $element->setOption('label', $label); } if (null !== $defaultValue) { $element->addFilter(new DefaultValue($defaultValue)); } }
/** * Binds the given input with its title * @param Element $element * @param $title */ protected function _makeInput(Element $element, $title) { if (null !== $title) { $element->setOption("title", $title); } }