public function SpiController::checkEnvironmentChange in Acquia Connector 8.2
Same name and namespace in other branches
- 8 src/Controller/SpiController.php \Drupal\acquia_connector\Controller\SpiController::checkEnvironmentChange()
- 3.x src/Controller/SpiController.php \Drupal\acquia_connector\Controller\SpiController::checkEnvironmentChange()
Check if a site environment change has been detected.
Return value
bool TRUE if change detected that needs to be addressed, otherwise FALSE.
1 call to SpiController::checkEnvironmentChange()
- SpiController::sendFullSpi in src/
Controller/ SpiController.php - Gather full SPI data and send to Acquia.
File
- src/
Controller/ SpiController.php, line 369
Class
- SpiController
- SPI Controller class.
Namespace
Drupal\acquia_connector\ControllerCode
public function checkEnvironmentChange() {
$changes = $this
->config('acquia_connector.settings')
->get('spi.environment_changes');
$change_action = $this
->config('acquia_connector.settings')
->get('spi.environment_changed_action');
return !empty($changes) && empty($change_action);
}