public function ContactCategory::prepareRow in Drupal 9
Same name and namespace in other branches
- 8 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\sourceCode
public function prepareRow(Row $row) {
$row
->setSourceProperty('recipients', explode(',', $row
->getSourceProperty('recipients')));
return parent::prepareRow($row);
}