You are here

public function ContactCategory::prepareRow in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/contact/src/Plugin/migrate/source/ContactCategory.php \Drupal\contact\Plugin\migrate\source\ContactCategory::prepareRow()
  2. 9 core/modules/contact/src/Plugin/migrate/source/ContactCategory.php \Drupal\contact\Plugin\migrate\source\ContactCategory::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/contact/src/Plugin/migrate/source/ContactCategory.php, line 44

Class

ContactCategory
Drupal 6/7 contact category source from database.

Namespace

Drupal\contact\Plugin\migrate\source

Code

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