Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Utils.php

function Utils::getenv

@internal

2 calls to Utils::getenv()
Client::configureDefaults in vendor/guzzlehttp/guzzle/src/Client.php
Configures the default options for a client.
CurlMultiHandler::__construct in vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php
This handler accepts the following options:

File

vendor/guzzlehttp/guzzle/src/Utils.php, line 360

Class

Utils

Namespace

GuzzleHttp

Code

public static function getenv(string $name) : ?string {
    if (isset($_SERVER[$name])) {
        return (string) $_SERVER[$name];
    }
    if (\PHP_SAPI === 'cli' && ($value = \getenv($name)) !== false && $value !== null) {
        return (string) $value;
    }
    return null;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal