* ``` * * @see https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-form-submit */ final class SubmitViewHelper extends AbstractFormFieldViewHelper { /** * @var string */ protected $tagName = 'input'; public function render(): string { $name = $this->getName(); $this->registerFieldNameForFormTokenGeneration($name); $this->tag->addAttribute('type', 'submit'); $this->tag->addAttribute('value', (string)$this->getValueAttribute()); if (!empty($name)) { $this->tag->addAttribute('name', $name); } return $this->tag->render(); } }