public function ExceptionThrowingTestSource::rewind in Migrate Tools 8.4
Same name and namespace in other branches
- 8.5 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\sourceCode
public function rewind() {
throw new \Exception('Rewind Failure');
}