public function ExporterInterface::exportModuleContent in Default Content for D8 2.0.x
Same name and namespace in other branches
- 8 src/ExporterInterface.php \Drupal\default_content\ExporterInterface::exportModuleContent()
Exports all of the content defined in a module's info file.
Parameters
string $module_name: The name of the module.
string|null $folder: (optional) A folder to write the exported entities into, grouped by entity type. File entities also export their files into the same folder.
Return value
string[][] The serialized entities keyed by entity type and UUID.
Throws
\InvalidArgumentException If any UUID is not found.
1 method overrides ExporterInterface::exportModuleContent()
- Exporter::exportModuleContent in src/
Exporter.php - Exports all of the content defined in a module's info file.
File
- src/
ExporterInterface.php, line 57
Class
- ExporterInterface
- An interface defining a default content exporter.
Namespace
Drupal\default_contentCode
public function exportModuleContent($module_name, $folder = NULL);