You are here

public function ResponsiveImageStyles::prepareRow in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/responsive_image/src/Plugin/migrate/source/d7/ResponsiveImageStyles.php \Drupal\responsive_image\Plugin\migrate\source\d7\ResponsiveImageStyles::prepareRow()

Adds additional data to the row.

Parameters

\Drupal\migrate\Row $row: The row object.

Return value

bool FALSE if this row needs to be skipped.

Overrides SourcePluginBase::prepareRow

File

core/modules/responsive_image/src/Plugin/migrate/source/d7/ResponsiveImageStyles.php, line 57

Class

ResponsiveImageStyles
Gets Drupal responsive image styles source from database.

Namespace

Drupal\responsive_image\Plugin\migrate\source\d7

Code

public function prepareRow(Row $row) {
  $row
    ->setSourceProperty('mapping', unserialize($row
    ->getSourceProperty('mapping')));
  return parent::prepareRow($row);
}