public function PluginBag::valid

Implements \Iterator::valid().

File

drupal/core/lib/Drupal/Component/Plugin/PluginBag.php, line 151
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 valid() {
  $key = key($this->instanceIDs);
  return $key !== NULL && $key !== FALSE;
}