You are here

public function IteratingServiceBaseTrait::valid in Purge 8.3

Checks if current position is valid.

2 calls to IteratingServiceBaseTrait::valid()
DiagnosticsService::next in src/Plugin/Purge/DiagnosticCheck/DiagnosticsService.php
Override to log messages when enabled.
IteratingServiceBaseTrait::current in src/IteratingServiceBaseTrait.php
Return the current element.

File

src/IteratingServiceBaseTrait.php, line 101

Class

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

Namespace

Drupal\purge

Code

public function valid() {
  $this
    ->initializePluginInstances();
  return isset($this->instances[$this->position]);
}