public function SpiController::getAcquiaHostedMachineName in Acquia Connector 8
Same name and namespace in other branches
- 8.2 src/Controller/SpiController.php \Drupal\acquia_connector\Controller\SpiController::getAcquiaHostedMachineName()
- 3.x src/Controller/SpiController.php \Drupal\acquia_connector\Controller\SpiController::getAcquiaHostedMachineName()
Generate the machine name for acquia hosted sites.
Return value
string The suggested Acquia Hosted machine name.
1 call to SpiController::getAcquiaHostedMachineName()
- SpiController::get in src/
Controller/ SpiController.php - Gather site profile information about this site.
File
- src/
Controller/ SpiController.php, line 352
Class
- SpiController
- SPI Controller class.
Namespace
Drupal\acquia_connector\ControllerCode
public function getAcquiaHostedMachineName() {
$sub_data = $this
->state()
->get('acquia_subscription_data');
if ($this
->checkAcquiaHosted() && $sub_data) {
$uuid = new StatusController();
$sub_uuid = str_replace('-', '_', $uuid
->getIdFromSub($sub_data));
return $sub_uuid . '__' . $_SERVER['AH_SITE_NAME'] . '__' . uniqid();
}
}