Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DrupalKernelInterface.php

function DrupalKernelInterface::getContainer

Gets the current container.

Return value

\Symfony\Component\DependencyInjection\ContainerInterface A ContainerInterface instance.

1 method overrides DrupalKernelInterface::getContainer()
DrupalKernel::getContainer in core/lib/Drupal/Core/DrupalKernel.php
Gets the current container.

File

core/lib/Drupal/Core/DrupalKernelInterface.php, line 64

Class

DrupalKernelInterface
The interface for DrupalKernel, the core of Drupal.

Namespace

Drupal\Core

Code

public function getContainer();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal