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

Breadcrumb

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

function ParameterBagInterface::set

Sets a service container parameter.

Throws

LogicException if the parameter cannot be set

1 method overrides ParameterBagInterface::set()
ParameterBag::set in vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php
Sets a service container parameter.

File

vendor/symfony/dependency-injection/ParameterBag/ParameterBagInterface.php, line 60

Class

ParameterBagInterface
ParameterBagInterface is the interface implemented by objects that manage service container parameters.

Namespace

Symfony\Component\DependencyInjection\ParameterBag

Code

public function set(string $name, array|bool|string|int|float|\UnitEnum|null $value) : void;
RSS feed
Powered by Drupal