You are here

public function ContentTypeModule::getViewContentUrl in Opigno module 8

Same name and namespace in other branches
  1. 3.x src/Plugin/OpignoGroupManagerContentType/ContentTypeModule.php \Drupal\opigno_module\Plugin\OpignoGroupManagerContentType\ContentTypeModule::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/ContentTypeModule.php, line 43

Class

ContentTypeModule
Class ContentTypeModule.

Namespace

Drupal\opigno_module\Plugin\OpignoGroupManagerContentType

Code

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