You are here

public function PhpArrayDumper::getArray in Service Container 7

Same name in this branch
  1. 7 lib/Drupal/Core/DependencyInjection/Dumper/PhpArrayDumper.php \Drupal\Core\DependencyInjection\Dumper\PhpArrayDumper::getArray()
  2. 7 lib/Drupal/Component/DependencyInjection/Dumper/PhpArrayDumper.php \Drupal\Component\DependencyInjection\Dumper\PhpArrayDumper::getArray()
Same name and namespace in other branches
  1. 7.2 lib/Drupal/Core/DependencyInjection/Dumper/PhpArrayDumper.php \Drupal\Core\DependencyInjection\Dumper\PhpArrayDumper::getArray()

Returns the service container as a PHP array.

Return value

array A PHP array represention of the service container

1 call to PhpArrayDumper::getArray()
PhpArrayDumper::dump in lib/Drupal/Core/DependencyInjection/Dumper/PhpArrayDumper.php
Dumps the service container.

File

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

Class

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

Namespace

Drupal\Core\DependencyInjection\Dumper

Code

public function getArray() {
  $definition = array();
  $definition['parameters'] = $this
    ->getParameters();
  $definition['services'] = $this
    ->getServiceDefinitions();
  return $definition;
}