public function SupportTicket::prepareRow in Support Ticketing System 8
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
- modules/
support_ticket/ src/ Plugin/ migrate/ source/ d6/ SupportTicket.php, line 207 - Contains \Drupal\support_ticket\Plugin\migrate\source\d6\SupportTicket.
Class
- SupportTicket
- Drupal 6 support ticket source from database.
Namespace
Drupal\support_ticket\Plugin\migrate\source\d6Code
public function prepareRow(Row $row) {
// format = 0 can happen when the body field is hidden. Set the format to 1
// to avoid migration map issues (since the body field isn't used anyway).
if ($row
->getSourceProperty('format') === '0') {
$row
->setSourceProperty('format', $this->filterDefaultFormat);
}
return parent::prepareRow($row);
}