protected function CommentVariable::initializeIterator in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/comment/src/Plugin/migrate/source/d6/CommentVariable.php \Drupal\comment\Plugin\migrate\source\d6\CommentVariable::initializeIterator()
Implementation of MigrateSource::performRewind().
We could simply execute the query and be functionally correct, but we will take advantage of the PDO-based API to optimize the query up-front.
Overrides SqlBase::initializeIterator
File
- core/
modules/ comment/ src/ Plugin/ migrate/ source/ d6/ CommentVariable.php, line 25 - Contains \Drupal\comment\Plugin\migrate\source\d6\CommentVariable.
Class
- CommentVariable
- Plugin annotation @MigrateSource( id = "d6_comment_variable" )
Namespace
Drupal\comment\Plugin\migrate\source\d6Code
protected function initializeIterator() {
return new \ArrayIterator($this
->getCommentVariables());
}