public function LazyPluginCollection::getIterator in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Component/Plugin/LazyPluginCollection.php \Drupal\Component\Plugin\LazyPluginCollection::getIterator()
File
- core/
lib/ Drupal/ Component/ Plugin/ LazyPluginCollection.php, line 150 - Contains \Drupal\Component\Plugin\LazyPluginCollection.
Class
- LazyPluginCollection
- Defines an object which stores multiple plugin instances to lazy load them.
Namespace
Drupal\Component\PluginCode
public function getIterator() {
$instances = [];
foreach ($this
->getInstanceIds() as $instance_id) {
$instances[$instance_id] = $this
->get($instance_id);
}
return new \ArrayIterator($instances);
}