public function PhpArrayDumper::getArray in Service Container 7.2
Same name in this branch
- 7.2 lib/Drupal/Core/DependencyInjection/Dumper/PhpArrayDumper.php \Drupal\Core\DependencyInjection\Dumper\PhpArrayDumper::getArray()
- 7.2 lib/Drupal/Component/DependencyInjection/Dumper/PhpArrayDumper.php \Drupal\Component\DependencyInjection\Dumper\PhpArrayDumper::getArray()
Same name and namespace in other branches
- 7 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\DumperCode
public function getArray() {
$definition = array();
$definition['parameters'] = $this
->getParameters();
$definition['services'] = $this
->getServiceDefinitions();
return $definition;
}