function PhpArrayDumper::getServiceCall
Same name in other branches
- 9 core/lib/Drupal/Component/DependencyInjection/Dumper/PhpArrayDumper.php \Drupal\Component\DependencyInjection\Dumper\PhpArrayDumper::getServiceCall()
- 10 core/lib/Drupal/Component/DependencyInjection/Dumper/PhpArrayDumper.php \Drupal\Component\DependencyInjection\Dumper\PhpArrayDumper::getServiceCall()
- 11.x core/lib/Drupal/Component/DependencyInjection/Dumper/PhpArrayDumper.php \Drupal\Component\DependencyInjection\Dumper\PhpArrayDumper::getServiceCall()
Overrides OptimizedPhpArrayDumper::getServiceCall
File
-
core/
lib/ Drupal/ Component/ DependencyInjection/ Dumper/ PhpArrayDumper.php, line 50
Class
- PhpArrayDumper
- PhpArrayDumper dumps a service container as a PHP array.
Namespace
Drupal\Component\DependencyInjection\DumperCode
protected function getServiceCall($id, $invalid_behavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) {
if ($invalid_behavior !== ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) {
return '@?' . $id;
}
return '@' . $id;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.