public function render()
{
$tags = [sprintf('<form%s>', $this->renderAttributes())];
if ($this->hasToken() && $this->attributes['method'] !== 'GET') {
$tags[] = $this->token->render();
}
if ($this->hasHiddenMethod()) {
$tags[] = $this->hiddenMethod->render();
}
return implode($tags);
}