public function LanguageContentSettings::prepareRow in Drupal 10
Same name in this branch
- 10 core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettings.php \Drupal\language\Plugin\migrate\source\d6\LanguageContentSettings::prepareRow()
- 10 core/modules/language/src/Plugin/migrate/source/d7/LanguageContentSettings.php \Drupal\language\Plugin\migrate\source\d7\LanguageContentSettings::prepareRow()
Same name and namespace in other branches
- 8 core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettings.php \Drupal\language\Plugin\migrate\source\d6\LanguageContentSettings::prepareRow()
- 9 core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettings.php \Drupal\language\Plugin\migrate\source\d6\LanguageContentSettings::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/ language/ src/ Plugin/ migrate/ source/ d6/ LanguageContentSettings.php, line 48
Class
- LanguageContentSettings
- Drupal 6 i18n node settings from database.
Namespace
Drupal\language\Plugin\migrate\source\d6Code
public function prepareRow(Row $row) {
$type = $row
->getSourceProperty('type');
$row
->setSourceProperty('language_content_type', $this
->variableGet('language_content_type_' . $type, NULL));
$row
->setSourceProperty('i18n_lock_node', $this
->variableGet('i18n_lock_node_' . $type, 0));
return parent::prepareRow($row);
}