You are here

public function CertificateTabController::renderDefaultCertificateTab in Course 8.2

Same name and namespace in other branches
  1. 8.3 modules/course_certificate/src/Controller/CertificateTabController.php \Drupal\course_certificate\Controller\CertificateTabController::renderDefaultCertificateTab()

Helper to plugin current user when not provided in path

Parameters

Course $course:

Return value

main cert tab

1 string reference to 'CertificateTabController::renderDefaultCertificateTab'
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 28

Class

CertificateTabController
An example controller.

Namespace

Drupal\course_certificate\Controller

Code

public function renderDefaultCertificateTab(Course $course) {
  $account = Drupal::currentUser();
  return $this
    ->renderCertificateTab($course, $account);
}