You are here

public function ContentTypeBase::getStartContentUrl in Opigno group manager 8

Same name and namespace in other branches
  1. 3.x src/ContentTypeBase.php \Drupal\opigno_group_manager\ContentTypeBase::getStartContentUrl()

Get the URL object for starting the quiz.

Parameters

int $content_id: The content ID (ex: node ID).

int $group_id: The group ID (optional).

Return value

\Drupal\Core\Url The URL to use to start the "test" for a student.

File

src/ContentTypeBase.php, line 88

Class

ContentTypeBase
Class ContentTypeBase.

Namespace

Drupal\opigno_group_manager

Code

public function getStartContentUrl($content_id, $group_id = NULL) {
  return $this
    ->getViewContentUrl($content_id);
}