public function SpiController::getAcquiaHostedName in Acquia Connector 8.2
Same name and namespace in other branches
- 8 src/Controller/SpiController.php \Drupal\acquia_connector\Controller\SpiController::getAcquiaHostedName()
- 3.x src/Controller/SpiController.php \Drupal\acquia_connector\Controller\SpiController::getAcquiaHostedName()
Generate the name for acquia hosted sites.
Return value
string The Acquia Hosted name.
File
- src/
Controller/ SpiController.php, line 338
Class
- SpiController
- SPI Controller class.
Namespace
Drupal\acquia_connector\ControllerCode
public function getAcquiaHostedName() {
$subscription_name = $this
->config('acquia_connector.settings')
->get('subscription_name');
if ($this
->checkAcquiaHosted() && $subscription_name) {
return $this
->config('acquia_connector.settings')
->get('subscription_name') . ': ' . $_SERVER['AH_SITE_ENVIRONMENT'];
}
}