public function UserPictureInstance::initializeIterator in Drupal 9
Same name and namespace in other branches
- 8 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 iterable object of data for this source.
Overrides SqlBase::initializeIterator
File
- core/
modules/ user/ src/ Plugin/ migrate/ source/ UserPictureInstance.php, line 29
Class
- UserPictureInstance
- User picture field instance source from database.
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'),
],
]);
}