You are here

public function ExportManager::getExportsListOptions in Content Synchronizer 8

Same name and namespace in other branches
  1. 8.2 src/Service/ExportManager.php \Drupal\content_synchronizer\Service\ExportManager::getExportsListOptions()
  2. 3.x src/Service/ExportManager.php \Drupal\content_synchronizer\Service\ExportManager::getExportsListOptions()

Return the list of export checkboxes options.

Return value

array The export list options.

File

src/Service/ExportManager.php, line 21

Class

ExportManager
The export manager.

Namespace

Drupal\content_synchronizer\Service

Code

public function getExportsListOptions() {
  $exportsOptions = [];

  /** @var \Drupal\content_synchronizer\Entity\ExportEntity $export */
  foreach (ExportEntity::loadMultiple() as $export) {
    $exportsOptions[$export
      ->id()] = $export
      ->label();
  }
  return $exportsOptions;
}