public function PluginBag::count

Implements \Countable::count().

File

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