public function CertificateTabController::accessDefaultTab in Course 8.3
Same name and namespace in other branches
- 8.2 modules/course_certificate/src/Controller/CertificateTabController.php \Drupal\course_certificate\Controller\CertificateTabController::accessDefaultTab()
Helper to plugin current user when not provided in path
Parameters
Course $course:
Return value
main cert tab
1 string reference to 'CertificateTabController::accessDefaultTab'
- course_certificate.routing.yml in modules/
course_certificate/ course_certificate.routing.yml - modules/course_certificate/course_certificate.routing.yml
File
- modules/
course_certificate/ src/ Controller/ CertificateTabController.php, line 38
Class
- CertificateTabController
- An example controller.
Namespace
Drupal\course_certificate\ControllerCode
public function accessDefaultTab(Course $course) {
$account = Drupal::currentUser();
return $this
->accessTab($course, $account);
}