class Container
Same name in this branch
- 11.1.x vendor/lullabot/php-webdriver/lib/WebDriver/Container.php \WebDriver\Container
- 11.1.x vendor/symfony/dependency-injection/Container.php \Symfony\Component\DependencyInjection\Container
- 11.1.x core/lib/Drupal/Core/Render/Element/Container.php \Drupal\Core\Render\Element\Container
- 11.1.x core/lib/Drupal/Component/DependencyInjection/Container.php \Drupal\Component\DependencyInjection\Container
Extends the container to prevent serialization.
Hierarchy
- class \Drupal\Component\DependencyInjection\Container implements \Drupal\Component\DependencyInjection\ContainerInterface, \Symfony\Contracts\Service\ResetInterface
- class \Drupal\Core\DependencyInjection\Container extends \Drupal\Component\DependencyInjection\Container
Expanded class hierarchy of Container
38 string references to 'Container'
- AbstractRecursivePass::processValue in vendor/
symfony/ dependency-injection/ Compiler/ AbstractRecursivePass.php - Processes a value found in a definition tree.
- Actions::getInfo in core/
lib/ Drupal/ Core/ Render/ Element/ Actions.php - Returns the element properties for this element.
- AddHandler::buildForm in core/
modules/ views_ui/ src/ Form/ Ajax/ AddHandler.php - Form constructor.
- ArgumentPluginBase::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ argument/ ArgumentPluginBase.php - Provide a form to edit options for this plugin.
- ChooseBlockController::build in core/
modules/ layout_builder/ src/ Controller/ ChooseBlockController.php - Provides the UI for choosing a new block.
File
-
core/
lib/ Drupal/ Core/ DependencyInjection/ Container.php, line 10
Namespace
Drupal\Core\DependencyInjectionView source
class Container extends DrupalContainer {
/**
* {@inheritdoc}
*/
public function __sleep() : array {
assert(FALSE, 'The container was serialized.');
return array_keys(get_object_vars($this));
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
Container::$aliases | protected | property | The aliases of the container. | ||
Container::$frozen | protected | property | Whether the container parameters can still be changed. | ||
Container::$loading | protected | property | The currently loading services. | ||
Container::$parameters | protected | property | The parameters of the container. | ||
Container::$privateServices | protected | property | The instantiated private services. | ||
Container::$serviceDefinitions | protected | property | The service definitions of the container. | ||
Container::$services | protected | property | The instantiated services. | ||
Container::createService | protected | function | Creates a service from a service definition. | 1 | |
Container::get | public | function | @template B of self::*_REFERENCE | Overrides ContainerInterface::get | |
Container::getAlternatives | protected | function | Provides alternatives for a given array and key. | ||
Container::getParameter | public | function | Overrides ContainerInterface::getParameter | ||
Container::getParameterAlternatives | protected | function | Provides alternatives in case a parameter was not found. | ||
Container::getServiceAlternatives | protected | function | Provides alternatives in case a service was not found. | ||
Container::getServiceIds | public | function | Gets all defined service IDs. | Overrides ContainerInterface::getServiceIds | |
Container::has | public | function | Returns true if the container can return an entry for the given identifier. Returns false otherwise. |
Overrides ContainerInterface::has | |
Container::hasParameter | public | function | Overrides ContainerInterface::hasParameter | ||
Container::initialized | public | function | Check for whether or not a service has been initialized. | Overrides ContainerInterface::initialized | |
Container::reset | public | function | Resets shared services from the container. | Overrides ResetInterface::reset | |
Container::resolveServicesAndParameters | protected | function | Resolves arguments that represent services or variables to the real values. | 1 | |
Container::set | public | function | Overrides ContainerInterface::set | ||
Container::setParameter | public | function | Overrides ContainerInterface::setParameter | ||
Container::__clone | private | function | Ensure that cloning doesn't work. | ||
Container::__construct | public | function | Constructs a new Container instance. | 1 | |
Container::__sleep | public | function | |||
ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE | public | constant | |||
ContainerInterface::IGNORE_ON_INVALID_REFERENCE | public | constant | |||
ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE | public | constant | |||
ContainerInterface::NULL_ON_INVALID_REFERENCE | public | constant | |||
ContainerInterface::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE | public | constant |