public function ContentTypeModule::getStartContentUrl in Opigno module 3.x
Same name and namespace in other branches
- 8 src/Plugin/OpignoGroupManagerContentType/ContentTypeModule.php \Drupal\opigno_module\Plugin\OpignoGroupManagerContentType\ContentTypeModule::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/ ContentTypeModule.php, line 50
Class
- ContentTypeModule
- Class ContentTypeModule.
Namespace
Drupal\opigno_module\Plugin\OpignoGroupManagerContentTypeCode
public function getStartContentUrl($entity_id, $group_id = NULL) {
return Url::fromRoute('opigno_module.take_module', [
'group' => $group_id,
'opigno_module' => $entity_id,
]);
}