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

Breadcrumb

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

function PhpConfig::updateEnv

Updates a restart settings value in the environment

Parameters

string $name:

string|false $value:

2 calls to PhpConfig::updateEnv()
PhpConfig::getDataAndReset in vendor/composer/xdebug-handler/src/PhpConfig.php
Returns restart data if available and resets the environment
PhpConfig::usePersistent in vendor/composer/xdebug-handler/src/PhpConfig.php
Use environment variables to persist settings

File

vendor/composer/xdebug-handler/src/PhpConfig.php, line 87

Class

PhpConfig
@author John Stevenson <john-stevenson@blueyonder.co.uk>

Namespace

Composer\XdebugHandler

Code

private function updateEnv(string $name, $value) : void {
    Process::setEnv($name, false !== $value ? $value : null);
}

API Navigation

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