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

Breadcrumb

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

function ParameterBag::has

Same name in this branch
  1. 11.1.x vendor/symfony/http-foundation/ParameterBag.php \Symfony\Component\HttpFoundation\ParameterBag::has()

Overrides ParameterBagInterface::has

3 calls to ParameterBag::has()
EnvPlaceholderParameterBag::get in vendor/symfony/dependency-injection/ParameterBag/EnvPlaceholderParameterBag.php
Gets a service container parameter.
EnvPlaceholderParameterBag::resolve in vendor/symfony/dependency-injection/ParameterBag/EnvPlaceholderParameterBag.php
Replaces parameter placeholders (%name%) by their values for all parameters.
ParameterBag::get in vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php
Gets a service container parameter.
1 method overrides ParameterBag::has()
ContainerBag::has in vendor/symfony/dependency-injection/ParameterBag/ContainerBag.php
Returns true if a parameter name is defined.

File

vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php, line 141

Class

ParameterBag
Holds parameters.

Namespace

Symfony\Component\DependencyInjection\ParameterBag

Code

public function has(string $name) : bool {
    return \array_key_exists($name, $this->parameters);
}

API Navigation

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