Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. OptimizedPhpArrayDumper.php

function OptimizedPhpArrayDumper::dump

Overrides DumperInterface::dump

File

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

Class

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

Namespace

Drupal\Component\DependencyInjection\Dumper

Code

public function dump(array $options = []) : string|array {
    return serialize($this->getArray());
}
RSS feed
Powered by Drupal