protected function OptimizedPhpArrayDumper::dumpCallable in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper::dumpCallable()
Dumps callable to a PHP array.
Parameters
array|callable $callable: The callable to process.
Return value
callable The processed callable.
1 call to OptimizedPhpArrayDumper::dumpCallable()
- OptimizedPhpArrayDumper::getServiceDefinition in lib/
Drupal/ Component/ DependencyInjection/ Dumper/ OptimizedPhpArrayDumper.php - Gets a service definition as PHP array.
File
- lib/
Drupal/ Component/ DependencyInjection/ Dumper/ OptimizedPhpArrayDumper.php, line 349 - Contains \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper.
Class
- OptimizedPhpArrayDumper
- OptimizedPhpArrayDumper dumps a service container as a serialized PHP array.
Namespace
Drupal\Component\DependencyInjection\DumperCode
protected function dumpCallable($callable) {
if (is_array($callable)) {
$callable[0] = $this
->dumpValue($callable[0]);
$callable = array(
$callable[0],
$callable[1],
);
}
return $callable;
}