Implements \Iterator::current().
File
- drupal/core/lib/Drupal/Component/Plugin/PluginBag.php, line 130
- Contains \Drupal\Component\Plugin\PluginBag.
Class
- PluginBag
- Defines an object which stores multiple plugin instances to lazy load them.
Namespace
Drupal\Component\Plugin
Code
public function current() {
return $this
->get($this
->key());
}