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

Breadcrumb

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

function EnvVarProcessorInterface::getEnv

Returns the value of the given variable as managed by the current instance.

Parameters

string $prefix The namespace of the variable; when the empty string is passed, null values should be kept as is:

string $name The name of the variable within the namespace:

\Closure(string): mixed $getEnv A closure that allows fetching more env vars:

Throws

RuntimeException on error

1 method overrides EnvVarProcessorInterface::getEnv()
EnvVarProcessor::getEnv in vendor/symfony/dependency-injection/EnvVarProcessor.php
Returns the value of the given variable as managed by the current instance.

File

vendor/symfony/dependency-injection/EnvVarProcessorInterface.php, line 32

Class

EnvVarProcessorInterface
The EnvVarProcessorInterface is implemented by objects that manage environment-like variables.

Namespace

Symfony\Component\DependencyInjection

Code

public function getEnv(string $prefix, string $name, \Closure $getEnv) : mixed;

API Navigation

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