You are here

public function MenuLink::prepareRow in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/menu_link_content/src/Plugin/migrate/source/MenuLink.php \Drupal\menu_link_content\Plugin\migrate\source\MenuLink::prepareRow()

Add 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/menu_link_content/src/Plugin/migrate/source/MenuLink.php, line 70
Contains \Drupal\menu_link_content\Plugin\migrate\source\MenuLink.

Class

MenuLink
Drupal menu link source from database.

Namespace

Drupal\menu_link_content\Plugin\migrate\source

Code

public function prepareRow(Row $row) {
  $row
    ->setSourceProperty('options', unserialize($row
    ->getSourceProperty('options')));
  $row
    ->setSourceProperty('enabled', !$row
    ->getSourceProperty('hidden'));
  return parent::prepareRow($row);
}