public function EntityExportCsvDownload::__construct in Entity Export CSV 8
The entity export csv download constructor.
Parameters
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\Core\Access\CsrfTokenGenerator $csrf_token: The csrf token generator.
File
- src/
Controller/ EntityExportCsvDownload.php, line 44
Class
- EntityExportCsvDownload
- Define the entity export csv download controller.
Namespace
Drupal\entity_export_csv\ControllerCode
public function __construct(RequestStack $request_stack, CsrfTokenGenerator $csrf_token) {
$this->request = $request_stack
->getCurrentRequest();
$this->csrfToken = $csrf_token;
}