public function AssetCollectionIterator::key

1 call to AssetCollectionIterator::key()
AssetCollectionIterator::current in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/Iterator/AssetCollectionIterator.php
Returns a copy of the current asset with filters and a target URL applied.

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/Iterator/AssetCollectionIterator.php, line 78

Class

AssetCollectionIterator
Iterates over an asset collection.

Namespace

Assetic\Asset\Iterator

Code

public function key() {
  return key($this->assets);
}