public function render(ElementInterface $element) { if ($element->getOption('static')) { return $this->getView()->formElementStatic($element); } return parent::render($element); }
/** * Email * * @param ElementInterface|null $element * @return string|Helper\FormInput */ public function email(ElementInterface $element = null) { $helper = new Helper\FormEmail(); return $helper->__invoke($element); }