Posted on

Magento 2: how to set grid getRowUrl via the uiComponent

In my current Magento 2 module developement, I currently have the following code in my Grid.php file:

public function getRowUrl($row)
{
if ($id = $row->getMageProd()) {
return $this->getUrl(
‘catalog/product/edit’,
[‘id’ => $id]
);
} else {
return parent::getRowUrl($row);
}
}

Is there any way I can implement such thing via my ui_component file ?

Leave a Reply

Your email address will not be published.