function UserPictureInstance::initializeIterator
Same name in other branches
- 9 core/modules/user/src/Plugin/migrate/source/UserPictureInstance.php \Drupal\user\Plugin\migrate\source\UserPictureInstance::initializeIterator()
- 8.9.x core/modules/user/src/Plugin/migrate/source/UserPictureInstance.php \Drupal\user\Plugin\migrate\source\UserPictureInstance::initializeIterator()
- 10 core/modules/user/src/Plugin/migrate/source/UserPictureInstance.php \Drupal\user\Plugin\migrate\source\UserPictureInstance::initializeIterator()
Overrides SqlBase::initializeIterator
File
-
core/
modules/ user/ src/ Plugin/ migrate/ source/ UserPictureInstance.php, line 30
Class
- UserPictureInstance
- Drupal 6/7 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'),
],
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.