public function PoptinController::poptinIsUser in Website Popups, Email Popup, Exit-Intent Popup, and Contact Forms – Poptin 8
Implements poptinIsUser().
1 call to PoptinController::poptinIsUser()
- PoptinController::check in src/
Controller/ PoptinController.php - Implements check().
File
- src/
Controller/ PoptinController.php, line 264
Class
- PoptinController
- Provides route responses for the Poptin module.
Namespace
Drupal\poptin\ControllerCode
public function poptinIsUser() {
$result = \Drupal::database()
->select('poptin', 'p')
->fields('p')
->execute();
$result->allowRowCount = TRUE;
$num_of_results = $result
->rowCount();
if ($num_of_results > 0) {
return TRUE;
}
else {
return FALSE;
}
}