You are here

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

ManageExport

Namespace

Drupal\content_export_yaml

Code

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;
  }
}