protected function ProductVariationViewLink::getUrlInfo in Commerce Core 8.2
Returns the URI elements of the link.
Parameters
\Drupal\views\ResultRow $row: A view result row.
Return value
\Drupal\Core\Url The URI elements of the link.
Overrides EntityLink::getUrlInfo
File
- modules/
product/ src/ Plugin/ views/ field/ ProductVariationViewLink.php, line 18
Class
- ProductVariationViewLink
- Field handler to present a link to view a product variation.
Namespace
Drupal\commerce_product\Plugin\views\fieldCode
protected function getUrlInfo(ResultRow $row) {
return $this
->getEntity($row)
->toUrl('canonical')
->setAbsolute($this->options['absolute']);
}