public static function NodeExport::nodeExport in Node export 8
Batch operations method to export a node with given node ID.
Parameters
int $nid: ID of node to be exported.
array $context: An array of contextual key/value information for rebuild batch process.
File
- src/
NodeExport.php, line 91
Class
- NodeExport
- Provides a Node Export function.
Namespace
Drupal\node_exportCode
public static function nodeExport($nid, array &$context) {
$message = 'Exporting Nodes...';
$context['results'][] = $nid;
$context['message'] = $message;
}