public function MenuLink::prepareRow in Drupal 8
Same name and namespace in other branches
- 9 core/modules/menu_link_content/src/Plugin/migrate/source/MenuLink.php \Drupal\menu_link_content\Plugin\migrate\source\MenuLink::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
1 call to MenuLink::prepareRow()
- MenuLinkTranslation::prepareRow in core/
modules/ menu_link_content/ src/ Plugin/ migrate/ source/ d6/ MenuLinkTranslation.php - Adds additional data to the row.
1 method overrides MenuLink::prepareRow()
- MenuLinkTranslation::prepareRow in core/
modules/ menu_link_content/ src/ Plugin/ migrate/ source/ d6/ MenuLinkTranslation.php - Adds additional data to the row.
File
- core/
modules/ menu_link_content/ src/ Plugin/ migrate/ source/ MenuLink.php, line 75
Class
- MenuLink
- Drupal menu link source from database.
Namespace
Drupal\menu_link_content\Plugin\migrate\sourceCode
public function prepareRow(Row $row) {
$row
->setSourceProperty('options', unserialize($row
->getSourceProperty('options')));
$row
->setSourceProperty('enabled', !$row
->getSourceProperty('hidden'));
$row
->setSourceProperty('description', Unicode::truncate($row
->getSourceProperty('options/attributes/title'), 255));
return parent::prepareRow($row);
}