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

Breadcrumb

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

interface ExtensionInterface

Same name in this branch
  1. 11.1.x vendor/twig/twig/src/Extension/ExtensionInterface.php \Twig\Extension\ExtensionInterface
  2. 11.1.x vendor/symfony/css-selector/XPath/Extension/ExtensionInterface.php \Symfony\Component\CssSelector\XPath\Extension\ExtensionInterface

ExtensionInterface is the interface implemented by container extension classes.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

  • interface \Symfony\Component\DependencyInjection\Extension\ExtensionInterface

Expanded class hierarchy of ExtensionInterface

All classes that implement ExtensionInterface

10 files declare their use of ExtensionInterface
AbstractBundle.php in vendor/symfony/http-kernel/Bundle/AbstractBundle.php
Bundle.php in vendor/symfony/http-kernel/Bundle/Bundle.php
BundleInterface.php in vendor/symfony/http-kernel/Bundle/BundleInterface.php
ContainerBuilder.php in vendor/symfony/dependency-injection/ContainerBuilder.php
ContainerConfigurator.php in vendor/symfony/dependency-injection/Loader/Configurator/ContainerConfigurator.php

... See full list

File

vendor/symfony/dependency-injection/Extension/ExtensionInterface.php, line 21

Namespace

Symfony\Component\DependencyInjection\Extension
View source
interface ExtensionInterface {
    
    /**
     * Loads a specific configuration.
     *
     * @param array<array<mixed>> $configs
     *
     * @return void
     *
     * @throws \InvalidArgumentException When provided tag is not defined in this extension
     */
    public function load(array $configs, ContainerBuilder $container);
    
    /**
     * Returns the namespace to be used for this extension (XML namespace).
     *
     * @return string
     */
    public function getNamespace();
    
    /**
     * Returns the base path for the XSD files.
     *
     * @return string|false
     */
    public function getXsdValidationBasePath();
    
    /**
     * Returns the recommended alias to use in XML.
     *
     * This alias is also the mandatory prefix to use when using YAML.
     *
     * @return string
     */
    public function getAlias();

}

Members

Title Sort descending Modifiers Object type Summary Overrides
ExtensionInterface::getAlias public function Returns the recommended alias to use in XML. 1
ExtensionInterface::getNamespace public function Returns the namespace to be used for this extension (XML namespace). 1
ExtensionInterface::getXsdValidationBasePath public function Returns the base path for the XSD files. 1
ExtensionInterface::load public function Loads a specific configuration. 3

API Navigation

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