public function Container::initialized in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/dependency-injection/Container.php \Symfony\Component\DependencyInjection\Container::initialized()
- 8 core/lib/Drupal/Component/DependencyInjection/Container.php \Drupal\Component\DependencyInjection\Container::initialized()
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Component/DependencyInjection/Container.php \Drupal\Component\DependencyInjection\Container::initialized()
Check for whether or not a service has been initialized.
Parameters
string $id:
Return value
bool true if the service has been initialized, false otherwise
Overrides IntrospectableContainerInterface::initialized
File
- core/
lib/ Drupal/ Component/ DependencyInjection/ Container.php, line 408 - Contains \Drupal\Component\DependencyInjection\Container.
Class
- Container
- Provides a container optimized for Drupal's needs.
Namespace
Drupal\Component\DependencyInjectionCode
public function initialized($id) {
if (isset($this->aliases[$id])) {
$id = $this->aliases[$id];
}
return isset($this->services[$id]) || array_key_exists($id, $this->services);
}