You are here

public function ContentTypeMeeting::getStartContentUrl in Opigno Moxtra 3.x

Same name and namespace in other branches
  1. 8 src/Plugin/OpignoGroupManagerContentType/ContentTypeMeeting.php \Drupal\opigno_moxtra\Plugin\OpignoGroupManagerContentType\ContentTypeMeeting::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.

Overrides ContentTypeBase::getStartContentUrl

File

src/Plugin/OpignoGroupManagerContentType/ContentTypeMeeting.php, line 70

Class

ContentTypeMeeting
Class ContentTypeMeeting.

Namespace

Drupal\opigno_moxtra\Plugin\OpignoGroupManagerContentType

Code

public function getStartContentUrl($content_id, $group_id = NULL) {
  return Url::fromRoute('opigno_moxtra.meeting', [
    'opigno_moxtra_meeting' => $content_id,
  ]);
}