/**
  * @return array
  */
 public function getVariablesData()
 {
     return parent::getVariablesData();
 }
 /**
  * Act on specific elements of SPI update server response.
  *
  * @param array $spi_response Array response from SpiController->send().
  */
 private function handleServerResponse($spi_response)
 {
     // Check result for command to update SPI definition.
     $update = isset($spi_response['body']['update_spi_definition']) ? $spi_response['body']['update_spi_definition'] : FALSE;
     if ($update === TRUE) {
         $this->updateDefinition();
     }
     // Check for set_variables command.
     $set_variables = isset($spi_response['body']['set_variables']) ? $spi_response['body']['set_variables'] : FALSE;
     if ($set_variables !== FALSE) {
         $variablesController = new VariablesController();
         $variablesController->setVariables($set_variables);
     }
     // Log messages.
     $messages = isset($spi_response['body']['nspi_messages']) ? $spi_response['body']['nspi_messages'] : FALSE;
     if ($messages !== FALSE) {
         \Drupal::logger('acquia spi')->notice('SPI update server response messages: @messages', array('@messages' => implode(', ', $messages)));
     }
 }