protected function Node::getFieldValues in Drupal 10
Same name and namespace in other branches
- 8 core/modules/node/src/Plugin/migrate/source/d6/Node.php \Drupal\node\Plugin\migrate\source\d6\Node::getFieldValues()
- 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 216
Class
- Node
- Drupal 6 node source from database.
Namespace
Drupal\node\Plugin\migrate\source\d6Code
protected function getFieldValues(Row $node) {
$values = [];
foreach ($this
->getFieldInfo($node
->getSourceProperty('type')) as $field => $info) {
$values[$field] = $this
->getFieldData($info, $node);
}
return $values;
}