public function NspiController::checkAcquiaHostedStatusChanged in Acquia Connector 8
Same name and namespace in other branches
- 8.2 tests/modules/src/Controller/NspiController.php \Drupal\acquia_connector_test\Controller\NspiController::checkAcquiaHostedStatusChanged()
- 3.x tests/modules/src/Controller/NspiController.php \Drupal\acquia_connector_test\Controller\NspiController::checkAcquiaHostedStatusChanged()
Detect if Acquia hosted changed.
Parameters
array $spi_data: SPI data.
Return value
bool TRUE if site is Acquia Hosted.
2 calls to NspiController::checkAcquiaHostedStatusChanged()
- NspiController::detectChanges in tests/
modules/ src/ Controller/ NspiController.php - Detect potential environment changes.
- NspiController::updateNspiSite in tests/
modules/ src/ Controller/ NspiController.php - Save changes to the site entity.
File
- tests/
modules/ src/ Controller/ NspiController.php, line 290
Class
- NspiController
- Class NspiController.
Namespace
Drupal\acquia_connector_test\ControllerCode
public function checkAcquiaHostedStatusChanged(array $spi_data) {
return isset($spi_data['acquia_hosted']) && (bool) $spi_data['acquia_hosted'] != (bool) $this->acquiaHosted;
}