You are here

public function PrivateContentSettings::prepareRow in Private 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/migrate/source/d6/PrivateContentSettings.php \Drupal\private_content\Plugin\migrate\source\d6\PrivateContentSettings::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

src/Plugin/migrate/source/d6/PrivateContentSettings.php, line 29

Class

PrivateContentSettings
Migrates private content type settings.

Namespace

Drupal\private_content\Plugin\migrate\source\d6

Code

public function prepareRow(Row $row) {
  $node_type = $row
    ->getSourceProperty('type');
  $setting = $this
    ->variableGet('private_' . $node_type, 1);
  $row
    ->setSourceProperty('private', $setting);
  return parent::prepareRow($row);
}