public function PrivateContent::fields in Private 8
Same name in this branch
- 8 src/Plugin/migrate/source/d6/PrivateContent.php \Drupal\private_content\Plugin\migrate\source\d6\PrivateContent::fields()
- 8 src/Plugin/migrate/destination/d6/PrivateContent.php \Drupal\private_content\Plugin\migrate\destination\d6\PrivateContent::fields()
Same name and namespace in other branches
- 8.2 src/Plugin/migrate/source/d6/PrivateContent.php \Drupal\private_content\Plugin\migrate\source\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 29
Class
- PrivateContent
- Migrates private content.
Namespace
Drupal\private_content\Plugin\migrate\source\d6Code
public function fields() {
return array(
'nid' => $this
->t('The nid of a node'),
'private' => $this
->t('The private status of a node'),
);
}