DrupalKernel::rebuildContainer

public DrupalKernel::rebuildContainer()

Force a container rebuild.

Return value

\Symfony\Component\DependencyInjection\ContainerInterface

Overrides DrupalKernelInterface::rebuildContainer

File

core/lib/Drupal/Core/DrupalKernel.php, line 1109

Class

DrupalKernel
The DrupalKernel class is the core of Drupal itself.

Namespace

Drupal\Core

Code

public function rebuildContainer() {
  // Empty module properties and for them to be reloaded from scratch.
  $this->moduleList = NULL;
  $this->moduleData = array();
  $this->containerNeedsRebuild = TRUE;
  return $this->initializeContainer();
}
doc_Drupal
2016-10-29 09:03:03
Comments
Leave a Comment

Please login to continue.