function OptimizedPhpArrayDumper::getParameterCall

Same name in other branches
  1. 9 core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper::getParameterCall()
  2. 8.9.x core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper::getParameterCall()
  3. 11.x core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper::getParameterCall()

Gets a parameter reference in a suitable PHP array format.

Parameters

string $name: The name of the parameter to get a reference for.

Return value

string|object A suitable representation of the parameter reference.

1 call to OptimizedPhpArrayDumper::getParameterCall()
OptimizedPhpArrayDumper::dumpValue in core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php
Dumps the value to PHP array format.
1 method overrides OptimizedPhpArrayDumper::getParameterCall()
PhpArrayDumper::getParameterCall in core/lib/Drupal/Component/DependencyInjection/Dumper/PhpArrayDumper.php
Gets a parameter reference in a suitable PHP array format.

File

core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php, line 522

Class

OptimizedPhpArrayDumper
OptimizedPhpArrayDumper dumps a service container as a serialized PHP array.

Namespace

Drupal\Component\DependencyInjection\Dumper

Code

protected function getParameterCall($name) {
    return (object) [
        'type' => 'parameter',
        'name' => $name,
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.