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/dependency-injection/ParameterBag/ParameterBag.php \Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::has()

Returns true if the parameter is defined.

1 call to ParameterBag::has()
InputBag::filter in vendor/symfony/http-foundation/InputBag.php
Filter key.

File

vendor/symfony/http-foundation/ParameterBag.php, line 86

Class

ParameterBag
ParameterBag is a container for key/value pairs.

Namespace

Symfony\Component\HttpFoundation

Code

public function has(string $key) : bool {
    return \array_key_exists($key, $this->parameters);
}
RSS feed
Powered by Drupal