function LanguageContentSettings::prepareRow

Same name in this branch
  1. 8.9.x core/modules/language/src/Plugin/migrate/source/d7/LanguageContentSettings.php \Drupal\language\Plugin\migrate\source\d7\LanguageContentSettings::prepareRow()
Same name in other branches
  1. 9 core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettings.php \Drupal\language\Plugin\migrate\source\d6\LanguageContentSettings::prepareRow()
  2. 9 core/modules/language/src/Plugin/migrate/source/d7/LanguageContentSettings.php \Drupal\language\Plugin\migrate\source\d7\LanguageContentSettings::prepareRow()
  3. 10 core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettings.php \Drupal\language\Plugin\migrate\source\d6\LanguageContentSettings::prepareRow()
  4. 10 core/modules/language/src/Plugin/migrate/source/d7/LanguageContentSettings.php \Drupal\language\Plugin\migrate\source\d7\LanguageContentSettings::prepareRow()
  5. 11.x core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettings.php \Drupal\language\Plugin\migrate\source\d6\LanguageContentSettings::prepareRow()
  6. 11.x core/modules/language/src/Plugin/migrate/source/d7/LanguageContentSettings.php \Drupal\language\Plugin\migrate\source\d7\LanguageContentSettings::prepareRow()

Overrides SourcePluginBase::prepareRow

File

core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettings.php, line 43

Class

LanguageContentSettings
Drupal multilingual node settings from database.

Namespace

Drupal\language\Plugin\migrate\source\d6

Code

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

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