You are here

public function LanguageContentSettings::prepareRow in Drupal 8

Same name in this branch
  1. 8 core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettings.php \Drupal\language\Plugin\migrate\source\d6\LanguageContentSettings::prepareRow()
  2. 8 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
  1. 9 core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettings.php \Drupal\language\Plugin\migrate\source\d6\LanguageContentSettings::prepareRow()
  2. 10 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 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);
}