You are here

public function ContainerBuilder::setParameter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php \Drupal\Core\DependencyInjection\ContainerBuilder::setParameter()

Sets a parameter.

Parameters

string $name The parameter name:

mixed $value The parameter value:

Overrides ContainerInterface::setParameter

File

core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php, line 68
Contains \Drupal\Core\DependencyInjection\ContainerBuilder.

Class

ContainerBuilder
Drupal's dependency injection container builder.

Namespace

Drupal\Core\DependencyInjection

Code

public function setParameter($name, $value) {
  if (strtolower($name) !== $name) {
    throw new \InvalidArgumentException("Parameter names must be lowercase: {$name}");
  }
  parent::setParameter($name, $value);
}