public function CertificateController::__construct in Opigno certificate 3.x
Same name and namespace in other branches
- 8 src/Controller/CertificateController.php \Drupal\opigno_certificate\Controller\CertificateController::__construct()
Creates an EntityViewController object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
Overrides EntityViewController::__construct
File
- src/
Controller/ CertificateController.php, line 31
Class
- CertificateController
- Defines a controller to render a single opigno_certificate.
Namespace
Drupal\opigno_certificate\ControllerCode
public function __construct(AccountInterface $current_user, ...$default) {
parent::__construct(...$default);
$this->currentUser = $current_user ?: \Drupal::currentUser();
}