DrupalKernel::moduleData

protected DrupalKernel::moduleData($module) Returns module data on the filesystem. Parameters $module: The name of the module. Return value \Drupal\Core\Extension\Extension|bool Returns an Extension object if the module is found, FALSE otherwise. File core/lib/Drupal/Core/DrupalKernel.php, line 724 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected function moduleData($module) { if (!$this->moduleData) { // First, fin

DrupalKernel::loadLegacyIncludes

public DrupalKernel::loadLegacyIncludes() Helper method that loads legacy Drupal include files. Overrides DrupalKernelInterface::loadLegacyIncludes File core/lib/Drupal/Core/DrupalKernel.php, line 520 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code public function loadLegacyIncludes() { require_once $this->root . '/core/includes/common.inc'; require_once $this->root . '/core/includes/database.inc'; require_once $this->ro

DrupalKernel::invalidateContainer

public DrupalKernel::invalidateContainer() Invalidate the service container for the next request. Overrides DrupalKernelInterface::invalidateContainer File core/lib/Drupal/Core/DrupalKernel.php, line 1120 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code public function invalidateContainer() { // An invalidated container needs a rebuild. $this->containerNeedsRebuild = TRUE; // If we have not yet booted, settings or bootstrap se

DrupalKernel::initializeSettings

protected DrupalKernel::initializeSettings(Request $request) Locate site path and initialize settings singleton. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request. Throws \Symfony\Component\HttpKernel\Exception\BadRequestHttpException In case the host name in the request is not trusted. File core/lib/Drupal/Core/DrupalKernel.php, line 1011 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected func

DrupalKernel::initializeServiceProviders

protected DrupalKernel::initializeServiceProviders() Registers all service providers to the kernel. Throws \LogicException File core/lib/Drupal/Core/DrupalKernel.php, line 1263 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected function initializeServiceProviders() { $this->discoverServiceProviders(); $this->serviceProviders = array( 'app' => array(), 'site' => array(), ); foreach ($this->serviceP

DrupalKernel::initializeRequestGlobals

protected DrupalKernel::initializeRequestGlobals(Request $request) Bootstraps the legacy global request variables. @todo D8: Eliminate this entirely in favor of Request object. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request. File core/lib/Drupal/Core/DrupalKernel.php, line 1047 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected function initializeRequestGlobals(Request $request) { global $b

DrupalKernel::initializeContainer

protected DrupalKernel::initializeContainer() Initializes the service container. Return value \Symfony\Component\DependencyInjection\ContainerInterface File core/lib/Drupal/Core/DrupalKernel.php, line 830 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected function initializeContainer() { $this->containerNeedsDumping = FALSE; $session_started = FALSE; if (isset($this->container)) { // Save the id of the currently

DrupalKernel::handleException

protected DrupalKernel::handleException(\Exception $e, $request, $type) Converts an exception into a response. Parameters \Exception $e: An exception Request $request: A Request instance int $type: The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST) Return value Response A Response instance Throws \Exception If the passed in exception cannot be turned into a response. File core/lib/Drupal/Core/DrupalKernel.php, line 686 Class DrupalKer

DrupalKernel::handle

public DrupalKernel::handle(Request $request, $type = self::MASTER_REQUEST, $catch = TRUE) Handles a Request to convert it to a Response. When $catch is true, the implementation must catch all exceptions and do its best to convert them to a Response instance. Parameters Request $request A Request instance: int $type The type of the request: (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST) bool $catch Whether to catch exceptions or not: Return value Response A R

DrupalKernel::guessApplicationRoot

protected static DrupalKernel::guessApplicationRoot() Determine the application root directory based on assumptions. Return value string The application root. File core/lib/Drupal/Core/DrupalKernel.php, line 301 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected static function guessApplicationRoot() { return dirname(dirname(substr(__DIR__, 0, -strlen(__NAMESPACE__)))); }