You are here

protected function Node::getFieldValues in Zircon Profile 8

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

Gets CCK field values for a node.

Parameters

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

Return value

array CCK field values, keyed by field name.

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

File

core/modules/node/src/Plugin/migrate/source/d6/Node.php, line 143
Contains \Drupal\node\Plugin\migrate\source\d6\Node.

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
      ->getCckData($info, $node);
  }
  return $values;
}