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

Breadcrumb

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

interface ContainerInterface

Same name in this branch
  1. 11.1.x vendor/symfony/dependency-injection/ContainerInterface.php \Symfony\Component\DependencyInjection\ContainerInterface
  2. 11.1.x vendor/psr/container/src/ContainerInterface.php \Psr\Container\ContainerInterface

The interface for Drupal service container classes.

Hierarchy

  • interface \Psr\Container\ContainerInterface
    • interface \Symfony\Component\DependencyInjection\ContainerInterface extends \Psr\Container\ContainerInterface
      • interface \Drupal\Component\DependencyInjection\ContainerInterface extends \Symfony\Component\DependencyInjection\ContainerInterface

Expanded class hierarchy of ContainerInterface

All classes that implement ContainerInterface

1 file declares its use of ContainerInterface
ContainerBuilder.php in core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php

File

core/lib/Drupal/Component/DependencyInjection/ContainerInterface.php, line 10

Namespace

Drupal\Component\DependencyInjection
View source
interface ContainerInterface extends BaseContainerInterface {
    
    /**
     * Gets all defined service IDs.
     *
     * @return array
     *   An array of all defined service IDs.
     */
    public function getServiceIds();

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE public constant
ContainerInterface::get public function @template B of self::*_REFERENCE Overrides ContainerInterface::get 2
ContainerInterface::getParameter public function 2
ContainerInterface::getServiceIds public function Gets all defined service IDs. 1
ContainerInterface::has public function Returns true if the container can return an entry for the given identifier.
Returns false otherwise.
Overrides ContainerInterface::has 2
ContainerInterface::hasParameter public function 2
ContainerInterface::IGNORE_ON_INVALID_REFERENCE public constant
ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE public constant
ContainerInterface::initialized public function Check for whether or not a service has been initialized. 2
ContainerInterface::NULL_ON_INVALID_REFERENCE public constant
ContainerInterface::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE public constant
ContainerInterface::set public function 2
ContainerInterface::setParameter public function 2

API Navigation

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