You are here

public function ExporterInterface::exportContent in Default Content for D8 2.0.x

Same name and namespace in other branches
  1. 8 src/ExporterInterface.php \Drupal\default_content\ExporterInterface::exportContent()

Exports a single entity as importContent expects it.

Parameters

string $entity_type_id: The entity type ID.

mixed $entity_id: The entity ID to export.

string|null $destination: (optional) A file name to write the exported entity into. File entities also export their files into the same folder.

Return value

string The rendered export as hal.

1 method overrides ExporterInterface::exportContent()
Exporter::exportContent in src/Exporter.php
Exports a single entity as importContent expects it.

File

src/ExporterInterface.php, line 24

Class

ExporterInterface
An interface defining a default content exporter.

Namespace

Drupal\default_content

Code

public function exportContent($entity_type_id, $entity_id, $destination = NULL);