interface ContainerInterface

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/DependencyInjection/ContainerInterface.php \Drupal\Component\DependencyInjection\ContainerInterface
  2. 10 core/lib/Drupal/Component/DependencyInjection/ContainerInterface.php \Drupal\Component\DependencyInjection\ContainerInterface

The interface for Drupal service container classes.

Hierarchy

  • interface \Drupal\Component\DependencyInjection\ContainerInterface implements \Symfony\Component\DependencyInjection\ContainerInterface

Expanded class hierarchy of ContainerInterface

All classes that implement ContainerInterface

3 files declare their use of ContainerInterface
ChainedFastBackendFactoryTest.php in core/tests/Drupal/Tests/Core/Cache/ChainedFastBackendFactoryTest.php
ContainerBuilder.php in core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php
PluginExistsConstraintTest.php in core/tests/Drupal/Tests/Core/Plugin/PluginExistsConstraintTest.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 Overrides
ContainerInterface::getServiceIds public function Gets all defined service IDs. 1

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.