You are here

public static function ExportEntityWriter::getEntityLabel in Content Synchronizer 8

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

Return the entity label.

3 calls to ExportEntityWriter::getEntityLabel()
drush_content_synchronizer_launch_export in ./content_synchronizer.drush.inc
Launche the specified export.
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 128

Class

ExportEntityWriter
Export entity writer.

Namespace

Drupal\content_synchronizer\Processors

Code

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