You are here

public function PrivateContent::fields in Private content 8.2

Same name in this branch
  1. 8.2 src/Plugin/migrate/source/d6/PrivateContent.php \Drupal\private_content\Plugin\migrate\source\d6\PrivateContent::fields()
  2. 8.2 src/Plugin/migrate/destination/d6/PrivateContent.php \Drupal\private_content\Plugin\migrate\destination\d6\PrivateContent::fields()

Returns available fields on the source.

Return value

array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.

Overrides MigrateSourceInterface::fields

File

src/Plugin/migrate/source/d6/PrivateContent.php, line 30

Class

PrivateContent
Migrates private content.

Namespace

Drupal\private_content\Plugin\migrate\source\d6

Code

public function fields() {
  return array(
    'nid' => $this
      ->t('The nid of a node'),
    'private' => $this
      ->t('The private status of a node'),
  );
}