You are here

public static function ExportEntityWriter::getEntityLabel in Content Synchronizer 3.x

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

Return the entity label.

3 calls to ExportEntityWriter::getEntityLabel()
ContentSynchronizerManager::createExportFile in src/Service/ContentSynchronizerManager.php
Create a tar.gz file.
ExportEntityWriter::addRootEntity in src/Processors/ExportEntityWriter.php
Add the entity to the exported root entities list.
LaunchExportForm::getRootsEntities in src/Form/LaunchExportForm.php
Return the roots entities.

File

src/Processors/ExportEntityWriter.php, line 44

Class

ExportEntityWriter
Export entity writer.

Namespace

Drupal\content_synchronizer\Processors

Code

public static function getEntityLabel(EntityInterface $entity) {
  return $entity
    ->label();
}