ContainerBuilder::setParameter

public ContainerBuilder::setParameter($name, $value)

Sets a parameter.

Parameters

string $name The parameter name:

mixed $value The parameter value:

Overrides Container::setParameter

File

core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php, line 102

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);
}
doc_Drupal
2016-10-29 08:56:42
Comments
Leave a Comment

Please login to continue.