Cancel * ``` * * @see https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-form-button */ final class ButtonViewHelper extends AbstractFormFieldViewHelper { /** * @var string */ protected $tagName = 'button'; public function initializeArguments(): void { parent::initializeArguments(); $this->registerArgument('type', 'string', 'Specifies the type of button (e.g. "button", "reset" or "submit")', false, 'submit'); } public function render(): string { $type = $this->arguments['type']; $name = $this->getName(); $this->registerFieldNameForFormTokenGeneration($name); $this->tag->addAttribute('type', $type); $this->tag->addAttribute('name', $name); $this->tag->addAttribute('value', (string)$this->getValueAttribute()); $this->tag->setContent((string)$this->renderChildren()); $this->tag->forceClosingTag(true); return $this->tag->render(); } }