/**
* Gets field values for a node.
*
* @param \Drupal\migrate\Row $node
* The node.
*
* @return array
* Field values, keyed by field name.
*/
protected function getFieldValues(Row
$node) { $values =
[];
foreach ($this->
getFieldInfo($node->
getSourceProperty('type'
)) as $field =>
$info) { $values[$field] =
$this->
getFieldData($info,
$node);
} return $values;
} /**
* Gets field and instance definitions from the database.
*
* @param string $node_type
* The node type for which to get field info.
*
* @return array
* Field and instance information for the node type, keyed by field name.
*/