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
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);