Grido\Components\Actions\Href::getElement PHP Метод

getElement() публичный Метод

public getElement ( mixed $row ) : Nette\Utils\Html
$row mixed
Результат Nette\Utils\Html
    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;
    }