/** * Gather full SPI data and send to Acquia Network. * * @param string $method Optional identifier for the method initiating request. * Values could be 'cron' or 'menu callback' or 'drush'. * @return mixed FALSE if data not sent else NSPI result array */ public function sendFullSpi($method = '') { $spi = self::get($method); $config = $this->config('acquia_connector.settings'); $response = $this->client->sendNspi($config->get('identifier'), $config->get('key'), $spi); if ($response === FALSE) { return FALSE; } $this->handleServerResponse($response); \Drupal::configFactory()->getEditable('acquia_connector.settings')->set('cron_last', REQUEST_TIME)->save(); return $response; }