8.5.x SourcePluginBase.php SourcePluginBase::valid()
8.0.x SourcePluginBase.php SourcePluginBase::valid()
8.1.x SourcePluginBase.php SourcePluginBase::valid()
8.2.x SourcePluginBase.php SourcePluginBase::valid()
8.3.x SourcePluginBase.php SourcePluginBase::valid()
8.4.x SourcePluginBase.php SourcePluginBase::valid()
8.6.x SourcePluginBase.php SourcePluginBase::valid()

Checks whether the iterator is currently valid.

Implementation of \Iterator::valid() - called at the top of the loop, returning TRUE to process the loop and FALSE to terminate it.

File

core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php, line 316

Class

SourcePluginBase
The base class for source plugins.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

public function valid() {
  return isset($this->currentRow);
}