public function getElement($row)
{
$element = clone $this->getElementPrototype();
if ($confirm = $this->getOption('confirm')) {
$confirm = is_callable($confirm) ? call_user_func_array($confirm, [$row]) : $confirm;
$value = is_array($confirm) ? vsprintf($this->translate(array_shift($confirm)), $confirm) : $this->translate($confirm);
$element->setAttribute('data-grido-confirm', $value);
}
return $element;
}