You are here

protected function OptimizedPhpArrayDumper::getParameters in Service Container 7

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

Gets parameters of the container as a PHP array.

Return value

array The escaped and prepared parameters of the container.

1 call to OptimizedPhpArrayDumper::getParameters()
OptimizedPhpArrayDumper::getArray in lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php
Gets the service container definition as a PHP array.

File

lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php, line 103
Contains \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper.

Class

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

Namespace

Drupal\Component\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);
}