public function UserPictureInstance::initializeIterator in Drupal 8
Same name and namespace in other branches
- 9 core/modules/user/src/Plugin/migrate/source/UserPictureInstance.php \Drupal\user\Plugin\migrate\source\UserPictureInstance::initializeIterator()
Initializes the iterator with the source data.
Return value
\Iterator Returns an iteratable object of data for this source.
Overrides SqlBase::initializeIterator
File
- core/
modules/ user/ src/ Plugin/ migrate/ source/ UserPictureInstance.php, line 25
Class
- UserPictureInstance
- User picture field instance source.
Namespace
Drupal\user\Plugin\migrate\sourceCode
public function initializeIterator() {
return new \ArrayIterator([
[
'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'),
],
]);
}