public function getElement($row)
{
$element = parent::getElement($row);
if ($this->customHref) {
$href = call_user_func_array($this->customHref, [$row]);
} else {
$primaryKey = $this->getPrimaryKey();
$primaryValue = $this->grid->getProperty($row, $primaryKey);
$this->arguments[$primaryKey] = $primaryValue;
$href = $this->presenter->link($this->getDestination(), $this->arguments);
}
$element->href($href);
return $element;
}