function UserPictureInstance::initializeIterator

Same name in other branches
  1. 9 core/modules/user/src/Plugin/migrate/source/UserPictureInstance.php \Drupal\user\Plugin\migrate\source\UserPictureInstance::initializeIterator()
  2. 10 core/modules/user/src/Plugin/migrate/source/UserPictureInstance.php \Drupal\user\Plugin\migrate\source\UserPictureInstance::initializeIterator()
  3. 11.x 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 25

Class

UserPictureInstance
User picture field instance source.

Namespace

Drupal\user\Plugin\migrate\source

Code

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.