public function ContainerInterface::has

Returns true if the given service is defined.

@api

Parameters

string $id The service identifier:

Return value

Boolean true if the service is defined, false otherwise

1 method overrides ContainerInterface::has()
Container::has in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Container.php
Returns true if the given service is defined.

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerInterface.php, line 68

Class

ContainerInterface
ContainerInterface is the interface implemented by service container classes.

Namespace

Symfony\Component\DependencyInjection

Code

public function has($id);