public function render()
{
$name = $this->getName();
$this->registerFieldNameForFormTokenGeneration($name);
$this->tag->forceClosingTag(true);
$this->tag->addAttribute('name', $name);
$this->tag->setContent(htmlspecialchars($this->getValueAttribute()));
if ($this->hasArgument('required') && $this->arguments['required'] === true) {
$this->tag->addAttribute('required', 'required');
}
$this->addAdditionalIdentityPropertiesIfNeeded();
$this->setErrorClassAttribute();
return $this->tag->render();
}