You are here

public function InstapageCmsPluginDrupal8Connector::checkProxy in Instapage plugin 8.3

Same name and namespace in other branches
  1. 7.3 core/connectors/InstapageCmsPluginDrupal8Connector.php \InstapageCmsPluginDrupal8Connector::checkProxy()

Checks (and processes it) if a lcurrent request should be processes by plugin's proxy.

1 call to InstapageCmsPluginDrupal8Connector::checkProxy()
InstapageCmsPluginDrupal8Connector::initPlugin in core/connectors/InstapageCmsPluginDrupal8Connector.php
Initiates Instapage plugin's DB structure and loads plugin's classes.

File

core/connectors/InstapageCmsPluginDrupal8Connector.php, line 575

Class

InstapageCmsPluginDrupal8Connector
Class that utilizes native Drupal 8 functions to perform actions like remote requests and DB operations.

Code

public function checkProxy() {
  $services = InstapageCmsPluginServicesModel::getInstance();
  if ($services
    ->isServicesRequest()) {
    try {
      $services
        ->processProxyServices();
      return;
    } catch (Exception $e) {
      echo $e
        ->getMessage();
    }
  }
}