public function UserPictureInstance::initializeIterator in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/src/Plugin/migrate/source/UserPictureInstance.php \Drupal\user\Plugin\migrate\source\UserPictureInstance::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/ user/ src/ Plugin/ migrate/ source/ UserPictureInstance.php, line 29 - Contains \Drupal\user\Plugin\migrate\source\UserPictureInstance.
Class
- UserPictureInstance
- User picture field instance source.
Namespace
Drupal\user\Plugin\migrate\sourceCode
public function initializeIterator() {
return new \ArrayIterator(array(
array(
'id' => '',
'file_directory' => $this
->variableGet('user_picture_path', 'pictures'),
'max_filesize' => $this
->variableGet('user_picture_file_size', '30') . 'KB',
'max_resolution' => $this
->variableGet('user_picture_dimensions', '85x85'),
),
));
}