public function UpdateHelper::get_environment_url in Evercurrent 8
Helper function.
Get an environment URL and ship together with the results. First we see if we have our own explicit variable set. This is only used for this purpose, and it allows the module to be flexible in terms of determining the correct environment.
1 call to UpdateHelper::get_environment_url()
- UpdateHelper::sendUpdates in src/
UpdateHelper.php - Send updates to the Maintenance server.
File
- src/
UpdateHelper.php, line 290 - Contains Drupal\evercurrent\UpdateHelper.
Class
- UpdateHelper
- Class UpdateHelper.
Namespace
Drupal\evercurrentCode
public function get_environment_url() {
global $base_url;
$settings = Settings::get('evercurrent_environment_url', NULL);
return $settings ? $settings : $base_url;
}