You are here

private function PoptinController::poptinGetToken in Website Popups, Email Popup, Exit-Intent Popup, and Contact Forms – Poptin 8

Implements poptin_check_csrf_token().

5 calls to PoptinController::poptinGetToken()
PoptinController::check in src/Controller/PoptinController.php
Implements check().
PoptinController::poptinDeactivate in src/Controller/PoptinController.php
Implements poptinDeactivate().
PoptinController::poptinGeneratePoptinLink in src/Controller/PoptinController.php
Implements poptinGeneratePoptinLink().
PoptinController::poptinLogin in src/Controller/PoptinController.php
Implements poptinLogin().
PoptinController::poptinSignup in src/Controller/PoptinController.php
Implements poptinSignup().

File

src/Controller/PoptinController.php, line 293

Class

PoptinController
Provides route responses for the Poptin module.

Namespace

Drupal\poptin\Controller

Code

private function poptinGetToken() {
  $token = $this->tokenGenerator
    ->get();
  return $token;
}