protected PhpArrayDumper::getServiceCall($id, $invalid_behavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE)
Gets a service reference for an ID in a suitable PHP array format.
string $id: The ID of the service to get a reference for.
int $invalid_behavior: (optional) The invalid behavior of the service.
string|\stdClass A suitable representation of the service reference.
Overrides OptimizedPhpArrayDumper::getServiceCall
protected function getServiceCall($id, $invalid_behavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) { if ($invalid_behavior !== ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) { return '@?' . $id; } return '@' . $id; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!DependencyInjection!Dumper!PhpArrayDumper.php/function/PhpArrayDumper::getServiceCall/8.1.x