You are here

public function SpiController::checkAcquiaHosted in Acquia Connector 8.2

Same name and namespace in other branches
  1. 8 src/Controller/SpiController.php \Drupal\acquia_connector\Controller\SpiController::checkAcquiaHosted()
  2. 3.x src/Controller/SpiController.php \Drupal\acquia_connector\Controller\SpiController::checkAcquiaHosted()

Attempt to determine if this site is hosted with Acquia.

Return value

bool TRUE if site is hosted with Acquia, otherwise FALSE.

3 calls to SpiController::checkAcquiaHosted()
SpiController::get in src/Controller/SpiController.php
Gather site profile information about this site.
SpiController::getAcquiaHostedMachineName in src/Controller/SpiController.php
Generate the machine name for acquia hosted sites.
SpiController::getAcquiaHostedName in src/Controller/SpiController.php
Generate the name for acquia hosted sites.

File

src/Controller/SpiController.php, line 328

Class

SpiController
SPI Controller class.

Namespace

Drupal\acquia_connector\Controller

Code

public function checkAcquiaHosted() {
  return isset($_SERVER['AH_SITE_ENVIRONMENT'], $_SERVER['AH_SITE_NAME']);
}