public function ContactCategory::prepareRow in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/contact/src/Plugin/migrate/source/ContactCategory.php \Drupal\contact\Plugin\migrate\source\ContactCategory::prepareRow()
Add 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 - Contains \Drupal\contact\Plugin\migrate\source\ContactCategory.
Class
- ContactCategory
- 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);
}