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

Breadcrumb

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

function ParameterBag::set

Same name in this branch
  1. 11.1.x vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php \Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::set()
3 calls to ParameterBag::set()
FileBag::set in vendor/symfony/http-foundation/FileBag.php
FileBag::set in vendor/symfony/http-foundation/FileBag.php
MediaLibraryState::__construct in core/modules/media_library/src/MediaLibraryState.php
2 methods override ParameterBag::set()
FileBag::set in vendor/symfony/http-foundation/FileBag.php
InputBag::set in vendor/symfony/http-foundation/InputBag.php
Sets an input by name.

File

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

Class

ParameterBag
ParameterBag is a container for key/value pairs.

Namespace

Symfony\Component\HttpFoundation

Code

public function set(string $key, mixed $value) : void {
    $this->parameters[$key] = $value;
}
RSS feed
Powered by Drupal