You are here

public function UserPictureInstance::fields in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/user/src/Plugin/migrate/source/UserPictureInstance.php \Drupal\user\Plugin\migrate\source\UserPictureInstance::fields()
  2. 10 core/modules/user/src/Plugin/migrate/source/UserPictureInstance.php \Drupal\user\Plugin\migrate\source\UserPictureInstance::fields()

Returns available fields on the source.

Return value

array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.

Overrides MigrateSourceInterface::fields

File

core/modules/user/src/Plugin/migrate/source/UserPictureInstance.php, line 39

Class

UserPictureInstance
User picture field instance source.

Namespace

Drupal\user\Plugin\migrate\source

Code

public function fields() {
  return [
    'file_directory' => 'The directory to store images..',
    'max_filesize' => 'The maximum allowed file size in KBs.',
    'max_resolution' => "The maximum resolution.",
  ];
}