function ContainerInterface::has
Same name in this branch
- 11.1.x vendor/psr/container/src/ContainerInterface.php \Psr\Container\ContainerInterface::has()
Overrides ContainerInterface::has
2 methods override ContainerInterface::has()
- Container::has in core/
lib/ Drupal/ Component/ DependencyInjection/ Container.php - Returns true if the container can return an entry for the given identifier. Returns false otherwise.
- Container::has in vendor/
symfony/ dependency-injection/ Container.php - Returns true if the container can return an entry for the given identifier. Returns false otherwise.
File
-
vendor/
symfony/ dependency-injection/ ContainerInterface.php, line 49
Class
- ContainerInterface
- ContainerInterface is the interface implemented by service container classes.
Namespace
Symfony\Component\DependencyInjectionCode
public function has(string $id) : bool;