You are here

public function IteratingServiceBaseTrait::key in Purge 8.3

Return the key of the current element.

File

src/IteratingServiceBaseTrait.php, line 57

Class

IteratingServiceBaseTrait
Adds \Iterator logic to \Drupal\purge\ServiceInterface derivatives.

Namespace

Drupal\purge

Code

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