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); }
Please login to continue.