You are here

public function ContentTypeILT::getViewContentUrl in Opigno Instructor-led Trainings 3.x

Same name and namespace in other branches
  1. 8 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\OpignoGroupManagerContentType

Code

public function getViewContentUrl($entity_id) {
  return Url::fromRoute('entity.opigno_ilt.canonical', [
    'opigno_ilt' => $entity_id,
  ]);
}