function DrupalKernel::getContainerBuilder
Same name in other branches
- 9 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::getContainerBuilder()
- 10 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::getContainerBuilder()
- 11.x core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::getContainerBuilder()
Gets a new ContainerBuilder instance used to build the service container.
Return value
\Drupal\Core\DependencyInjection\ContainerBuilder
1 call to DrupalKernel::getContainerBuilder()
- DrupalKernel::compileContainer in core/
lib/ Drupal/ Core/ DrupalKernel.php - Compiles a new service container.
File
-
core/
lib/ Drupal/ Core/ DrupalKernel.php, line 1367
Class
- DrupalKernel
- The DrupalKernel class is the core of Drupal itself.
Namespace
Drupal\CoreCode
protected function getContainerBuilder() {
return new ContainerBuilder(new ParameterBag($this->getKernelParameters()));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.