function OptimizedPhpArrayDumper::getIterator
Same name in other branches
- 11.x core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper::getIterator()
Gets a service iterator in a suitable PHP array format.
Parameters
\Symfony\Component\DependencyInjection\Argument\IteratorArgument $iterator: The iterator.
Return value
object The PHP array representation of the iterator.
1 call to OptimizedPhpArrayDumper::getIterator()
- OptimizedPhpArrayDumper::dumpValue in core/
lib/ Drupal/ Component/ DependencyInjection/ Dumper/ OptimizedPhpArrayDumper.php - Dumps the value to PHP array format.
File
-
core/
lib/ Drupal/ Component/ DependencyInjection/ Dumper/ OptimizedPhpArrayDumper.php, line 567
Class
- OptimizedPhpArrayDumper
- OptimizedPhpArrayDumper dumps a service container as a serialized PHP array.
Namespace
Drupal\Component\DependencyInjection\DumperCode
protected function getIterator(IteratorArgument $iterator) {
return (object) [
'type' => 'iterator',
'value' => array_map($this->dumpValue(...), $iterator->getValues()),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.