protected function OpignoModuleResultLink::getUrlInfo in Opigno module 8
Same name and namespace in other branches
- 3.x src/Plugin/views/field/OpignoModuleResultLink.php \Drupal\opigno_module\Plugin\views\field\OpignoModuleResultLink::getUrlInfo()
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 LinkBase::getUrlInfo
File
- src/
Plugin/ views/ field/ OpignoModuleResultLink.php, line 21
Class
- OpignoModuleResultLink
- A handler to provide a field that is completely custom by the administrator.
Namespace
Drupal\opigno_module\Plugin\views\fieldCode
protected function getUrlInfo(ResultRow $row) {
$parameters = [
'opigno_module' => $row->opigno_module_field_data_user_module_status_id,
'user_module_status' => $row->id,
];
return Url::fromRoute('opigno_module.module_result', $parameters);
}