Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ContainerInterface.php

function ContainerInterface::has

Same name in this branch
  1. 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\DependencyInjection

Code

public function has(string $id) : bool;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal