You are here

public function PrivateContentSettings::prepareRow in Private content 8.2

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 30

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