You are here

protected function PhpArrayDumper::getParameters in Service Container 7

Same name and namespace in other branches
  1. 7.2 lib/Drupal/Core/DependencyInjection/Dumper/PhpArrayDumper.php \Drupal\Core\DependencyInjection\Dumper\PhpArrayDumper::getParameters()

Returns parameters of the container as a PHP Array.

Return value

array The escaped and prepared parameters of the container.

1 call to PhpArrayDumper::getParameters()
PhpArrayDumper::getArray in lib/Drupal/Core/DependencyInjection/Dumper/PhpArrayDumper.php
Returns the service container as a PHP array.

File

lib/Drupal/Core/DependencyInjection/Dumper/PhpArrayDumper.php, line 51
Contains \Drupal\Core\DependencyInjection\Dumper\PhpArrayDumper

Class

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

Namespace

Drupal\Core\DependencyInjection\Dumper

Code

protected function getParameters() {
  if (!$this->container
    ->getParameterBag()
    ->all()) {
    return array();
  }
  $parameters = $this->container
    ->getParameterBag()
    ->all();
  $is_frozen = $this->container
    ->isFrozen();
  return $this
    ->prepareParameters($parameters, $is_frozen);
}