public function GlobAsset::getIterator

Returns an iterator for looping recursively over unique leaves.

Overrides AssetCollection::getIterator

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/GlobAsset.php, line 79

Class

GlobAsset
A collection of assets loaded by glob.

Namespace

Assetic\Asset

Code

public function getIterator() {
  if (!$this->initialized) {
    $this
      ->initialize();
  }
  return parent::getIterator();
}