public function ContentTypeILT::getViewContentUrl in Opigno Instructor-led Trainings 8
Same name and namespace in other branches
- 3.x src/Plugin/OpignoGroupManagerContentType/ContentTypeILT.php \Drupal\opigno_ilt\Plugin\OpignoGroupManagerContentType\ContentTypeILT::getViewContentUrl()
Get the URL object of the main view page of a specific entity.
Parameters
int $entity_id: The entity ID.
Return value
\Drupal\Core\Url The tool entity URL.
Overrides ContentTypeInterface::getViewContentUrl
File
- src/
Plugin/ OpignoGroupManagerContentType/ ContentTypeILT.php, line 61
Class
- ContentTypeILT
- Class ContentTypeILT.
Namespace
Drupal\opigno_ilt\Plugin\OpignoGroupManagerContentTypeCode
public function getViewContentUrl($entity_id) {
return Url::fromRoute('entity.opigno_ilt.canonical', [
'opigno_ilt' => $entity_id,
]);
}