function ContactCategory::prepareRow

Same name in other branches
  1. 9 core/modules/contact/src/Plugin/migrate/source/ContactCategory.php \Drupal\contact\Plugin\migrate\source\ContactCategory::prepareRow()
  2. 8.9.x core/modules/contact/src/Plugin/migrate/source/ContactCategory.php \Drupal\contact\Plugin\migrate\source\ContactCategory::prepareRow()
  3. 11.x core/modules/contact/src/Plugin/migrate/source/ContactCategory.php \Drupal\contact\Plugin\migrate\source\ContactCategory::prepareRow()

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.