You are here

public static function LaunchImportForm::getCreateOptions in Content Synchronizer 8

Same name and namespace in other branches
  1. 8.2 src/Form/LaunchImportForm.php \Drupal\content_synchronizer\Form\LaunchImportForm::getCreateOptions()
  2. 3.x src/Form/LaunchImportForm.php \Drupal\content_synchronizer\Form\LaunchImportForm::getCreateOptions()

Return create Options.

Return value

array The create options.

3 calls to LaunchImportForm::getCreateOptions()
ContentSynchronizerCommands::synchronizerLaunchImport in src/Commands/ContentSynchronizerCommands.php
Launch the import of the passed ID.
drush_content_synchronizer_launch_import in ./content_synchronizer.drush.inc
Launche the specified import.
LaunchImportForm::buildForm in src/Form/LaunchImportForm.php
Form constructor.

File

src/Form/LaunchImportForm.php, line 90

Class

LaunchImportForm
Launch Import Form.

Namespace

Drupal\content_synchronizer\Form

Code

public static function getCreateOptions() {
  return [
    ImportProcessor::PUBLICATION_PUBLISH => t(static::CREATION_ACTION_PUBLISH_LABEL),
    ImportProcessor::PUBLICATION_UNPUBLISH => t(static::CREATION_ACTION_UNPUBLISH_LABEL),
  ];
}