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

Breadcrumb

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

function 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\Dumper

Code

protected function getServiceCall($id, $invalid_behavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) {
    if ($invalid_behavior !== ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) {
        return '@?' . $id;
    }
    return '@' . $id;
}
RSS feed
Powered by Drupal