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

Breadcrumb

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

function AbstractBundle::getContainerExtension

Overrides Bundle::getContainerExtension

File

vendor/symfony/http-kernel/Bundle/AbstractBundle.php, line 42

Class

AbstractBundle
A Bundle that provides configuration hooks.

Namespace

Symfony\Component\HttpKernel\Bundle

Code

public function getContainerExtension() : ?ExtensionInterface {
    if ('' === $this->extensionAlias) {
        $this->extensionAlias = Container::underscore(preg_replace('/Bundle$/', '', $this->getName()));
    }
    return $this->extension ??= new BundleExtension($this, $this->extensionAlias);
}

API Navigation

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