You are here

public function ExportEntityWriter::getExpotedDataTypeFilePath in Content Synchronizer 3.x

Same name and namespace in other branches
  1. 8.2 src/Processors/ExportEntityWriter.php \Drupal\content_synchronizer\Processors\ExportEntityWriter::getExpotedDataTypeFilePath()
  2. 8 src/Processors/ExportEntityWriter.php \Drupal\content_synchronizer\Processors\ExportEntityWriter::getExpotedDataTypeFilePath()

Return the file path of the type of the entity.

2 calls to ExportEntityWriter::getExpotedDataTypeFilePath()
ExportEntityWriter::getExportedData in src/Processors/ExportEntityWriter.php
Get the entity Type data already exported.
ExportEntityWriter::write in src/Processors/ExportEntityWriter.php
Write the document to export.

File

src/Processors/ExportEntityWriter.php, line 157

Class

ExportEntityWriter
Export entity writer.

Namespace

Drupal\content_synchronizer\Processors

Code

public function getExpotedDataTypeFilePath(EntityInterface $entity) {
  return $this
    ->getDirPath() . '/' . $entity
    ->getEntityTypeId() . self::TYPE_EXTENSION;
}