You are here

public function ResponsiveImageStyles::fields in Drupal 9

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/responsive_image/src/Plugin/migrate/source/d7/ResponsiveImageStyles.php, line 36

Class

ResponsiveImageStyles
Gets Drupal responsive image styles source from database.

Namespace

Drupal\responsive_image\Plugin\migrate\source\d7

Code

public function fields() {
  $fields = [
    'label' => $this
      ->t('The human-readable name of the mapping'),
    'machine_name' => $this
      ->t('The machine name of the mapping'),
    'breakpoint_group' => $this
      ->t('The group this mapping belongs to'),
    'mapping' => $this
      ->t('The mappings linked to the breakpoints group'),
  ];
  return $fields;
}