protected function D7Webform::cleanString in Webform: Migrate 8
Same name and namespace in other branches
- 8.2 src/Plugin/migrate/source/d7/D7Webform.php \Drupal\webform_migrate\Plugin\migrate\source\d7\D7Webform::cleanString()
1 call to D7Webform::cleanString()
- D7Webform::buildFormElements in src/
Plugin/ migrate/ source/ d7/ D7Webform.php - Build form elements from webform component table.
File
- src/
Plugin/ migrate/ source/ d7/ D7Webform.php, line 865
Class
- D7Webform
- Drupal 7 webform source from database.
Namespace
Drupal\webform_migrate\Plugin\migrate\source\d7Code
protected function cleanString($str) {
return str_replace([
'"',
"\n",
"\r",
], [
"'",
'\\n',
'',
], $str);
}