Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Node.php

function 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 218

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal