public function ManageExport::export in Content Export YAML 8
Export on entities
1 call to ManageExport::export()
- DBManager::importByFilePath in modules/
manager_content_export_yaml/ src/ DBManager.php
File
- src/
ManageExport.php, line 26
Class
Namespace
Drupal\content_export_yamlCode
public function export($id, $entity, array $options = []) {
$object = \Drupal::entityTypeManager()
->getStorage($entity)
->load($id);
if (is_object($object)) {
return $this->func
->exportWithPath($object, $entity, $options);
}
else {
return false;
}
}