You are here

protected function Node::getFieldValues in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/node/src/Plugin/migrate/source/d6/Node.php \Drupal\node\Plugin\migrate\source\d6\Node::getFieldValues()

Gets field values for a node.

Parameters

\Drupal\migrate\Row $node: The node.

Return value

array Field values, keyed by field name.

1 call to Node::getFieldValues()
Node::prepareRow in core/modules/node/src/Plugin/migrate/source/d6/Node.php
Adds additional data to the row.

File

core/modules/node/src/Plugin/migrate/source/d6/Node.php, line 189

Class

Node
Drupal 6 node source from database.

Namespace

Drupal\node\Plugin\migrate\source\d6

Code

protected function getFieldValues(Row $node) {
  $values = [];
  foreach ($this
    ->getFieldInfo($node
    ->getSourceProperty('type')) as $field => $info) {
    $values[$field] = $this
      ->getFieldData($info, $node);
  }
  return $values;
}