function LazyPluginCollection::count

Attributes

#[\ReturnTypeWillChange]

File

core/lib/Drupal/Component/Plugin/LazyPluginCollection.php, line 157

Class

LazyPluginCollection
Defines an object which stores multiple plugin instances to lazy load them.

Namespace

Drupal\Component\Plugin

Code

public function count() {
  return count($this->instanceIds);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.