public function UpdateHelper::getEnvironmentUrl in Evercurrent 8.2
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.
Return value
string The environment url this module is working on.
1 call to UpdateHelper::getEnvironmentUrl()
- UpdateHelper::sendUpdates in src/
UpdateHelper.php - Send updates to the Maintenance server.
File
- src/
UpdateHelper.php, line 320
Class
- UpdateHelper
- Default UpdateHelper instantiation.
Namespace
Drupal\evercurrentCode
public function getEnvironmentUrl() {
global $base_url;
$settings = Settings::get('evercurrent_environment_url', NULL);
return $settings ? $settings : $base_url;
}