You are here

public static function LaunchImportForm::getUpdateOptions in Content Synchronizer 3.x

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

Return update options.

Return value

array The update options.

3 calls to LaunchImportForm::getUpdateOptions()
ContentSynchronizerCommands::launchImport in src/Commands/ContentSynchronizerCommands.php
Launch the import of the import entity ID.
ContentSynchronizerManager::launchImport in src/Service/ContentSynchronizerManager.php
Launch import from import id.
LaunchImportForm::buildForm in src/Form/LaunchImportForm.php
Form constructor.

File

src/Form/LaunchImportForm.php, line 93

Class

LaunchImportForm
Launch Import Form.

Namespace

Drupal\content_synchronizer\Form

Code

public static function getUpdateOptions() {
  return [
    ImportProcessor::UPDATE_SYSTEMATIC => t('Always update existing entity with importing content'),
    ImportProcessor::UPDATE_IF_RECENT => t('Update existing entity only if the last change date of new content is more recent than the last change date of the corresponding existing entity'),
    ImportProcessor::UPDATE_NO_UPDATE => t('Do not update existing content'),
  ];
}