You are here

public function ExceptionThrowingTestSource::rewind in Migrate Tools 8.5

Same name and namespace in other branches
  1. 8.4 tests/modules/migrate_tools_test/src/Plugin/migrate/source/ExceptionThrowingTestSource.php \Drupal\migrate_tools_test\Plugin\migrate\source\ExceptionThrowingTestSource::rewind()

Rewinds the iterator.

Implementation of \Iterator::rewind() - subclasses of SourcePluginBase should implement initializeIterator() to do any class-specific setup for iterating source records.

Overrides SourcePluginBase::rewind

File

tests/modules/migrate_tools_test/src/Plugin/migrate/source/ExceptionThrowingTestSource.php, line 48

Class

ExceptionThrowingTestSource
A simple migrate source for testing exception handling.

Namespace

Drupal\migrate_tools_test\Plugin\migrate\source

Code

public function rewind() {
  throw new \Exception('Rewind Failure');
}