You are here

public function NspiController::checkMachineNameStatusChanged in Acquia Connector 8

Same name and namespace in other branches
  1. 8.2 tests/modules/src/Controller/NspiController.php \Drupal\acquia_connector_test\Controller\NspiController::checkMachineNameStatusChanged()
  2. 3.x tests/modules/src/Controller/NspiController.php \Drupal\acquia_connector_test\Controller\NspiController::checkMachineNameStatusChanged()

Detect if machine name changed.

Parameters

array $spi_data: SPI data.

Return value

bool TRUE if machine name was changed.

2 calls to NspiController::checkMachineNameStatusChanged()
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 277

Class

NspiController
Class NspiController.

Namespace

Drupal\acquia_connector_test\Controller

Code

public function checkMachineNameStatusChanged(array $spi_data) {
  return isset($spi_data['machine_name']) && $spi_data['machine_name'] != $this->acqtestSiteMachineName;
}