public function Exporter::export in Default Content Deploy 8
Export entities by entity type, id or bundle.
Return value
\Drupal\default_content_deploy\Exporter
Throws
\Exception
File
- src/
Exporter.php, line 295
Class
- Exporter
- A service for handling export of default content.
Namespace
Drupal\default_content_deployCode
public function export() {
switch ($this->mode) {
case 'default':
$this
->prepareToExport();
break;
case 'reference':
$this
->prepareToExportWithReference();
break;
case 'all':
$this
->prepareToExportAllContent();
break;
}
// Edit and export all entities to folder.
$this
->editEntityData();
$this
->writeConfigsToFolder();
return $this;
}