public function PluginBag::key

Implements \Iterator::key().

1 call to PluginBag::key()
PluginBag::current in drupal/core/lib/Drupal/Component/Plugin/PluginBag.php
Implements \Iterator::current().

File

drupal/core/lib/Drupal/Component/Plugin/PluginBag.php, line 144
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 key() {
  return key($this->instanceIDs);
}