You are here

class LingotekJobManagementConfigForm in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 8.2 src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
  2. 4.0.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
  3. 3.0.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
  4. 3.1.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
  5. 3.2.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
  6. 3.3.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
  7. 3.5.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
  8. 3.6.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
  9. 3.7.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
  10. 3.8.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm

Form for bulk management of job filtered content.

Hierarchy

Expanded class hierarchy of LingotekJobManagementConfigForm

1 string reference to 'LingotekJobManagementConfigForm'
lingotek.routing.yml in ./lingotek.routing.yml
lingotek.routing.yml

File

src/Form/LingotekJobManagementConfigForm.php, line 11

Namespace

Drupal\lingotek\Form
View source
class LingotekJobManagementConfigForm extends LingotekConfigManagementForm {

  /**
   * The job ID
   *
   * @var string
   */
  protected $jobId;

  /**
   * {@inheritdoc}
   */
  public function getFormId() {
    return 'lingotek_job_config_management';
  }
  public function buildForm(array $form, FormStateInterface $form_state, $job_id = NULL) {
    $this->jobId = $job_id;
    $temp_store = $this
      ->getFilterTempStore();
    $temp_store
      ->set('job', $job_id);
    $form = parent::buildForm($form, $form_state);
    $form['filters']['wrapper']['job']['#access'] = FALSE;
    $form['filters']['wrapper']['job']['#default_value'] = $this->jobId;
    $form['options']['job_id']['#access'] = FALSE;
    $form['options']['job_id']['#default_value'] = $this->jobId;
    return $form;
  }
  protected function getFilterTempStore() {
    $key = new FormattableMarkup('lingotek.job_config_management_@job.filter', [
      '@job' => $this->jobId,
    ]);
    return $this->tempStoreFactory
      ->get($key);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DependencySerializationTrait::$_entityStorages protected property
DependencySerializationTrait::$_serviceIds protected property
DependencySerializationTrait::__sleep public function 2
DependencySerializationTrait::__wakeup public function 2
FormBase::$configFactory protected property The config factory. 3
FormBase::$requestStack protected property The request stack. 1
FormBase::$routeMatch protected property The route match.
FormBase::config protected function Retrieves a configuration object.
FormBase::configFactory protected function Gets the config factory for this form. 3
FormBase::container private function Returns the service container.
FormBase::currentUser protected function Gets the current user.
FormBase::getRequest protected function Gets the request object.
FormBase::getRouteMatch protected function Gets the route match.
FormBase::logger protected function Gets the logger for a specific channel.
FormBase::redirect protected function Returns a redirect response object for the specified route.
FormBase::resetConfigFactory public function Resets the configuration factory.
FormBase::setConfigFactory public function Sets the config factory for this form.
FormBase::setRequestStack public function Sets the request stack object to use.
FormBase::validateForm public function Form validation handler. Overrides FormInterface::validateForm 72
LingotekConfigManagementForm::$filter protected property The type of config to display.
LingotekConfigManagementForm::$languageLocaleMapper protected property The language-locale mapper.
LingotekConfigManagementForm::$languageManager protected property The language manager.
LingotekConfigManagementForm::$lingotekConfiguration protected property The Lingotek configuration service.
LingotekConfigManagementForm::$mappers protected property A array of configuration mapper instances.
LingotekConfigManagementForm::$tempStoreFactory protected property The tempstore factory.
LingotekConfigManagementForm::$translationService protected property The Lingotek content translation service.
LingotekConfigManagementForm::batchFinished public function
LingotekConfigManagementForm::cancel public function Cancel the content from Lingotek.
LingotekConfigManagementForm::cancelTarget public function Cancel the content from Lingotek.
LingotekConfigManagementForm::changeProfile public function Change Translation Profile.
LingotekConfigManagementForm::checkDocumentUploadStatus public function Check document upload status for a given content.
LingotekConfigManagementForm::checkTranslationStatus public function Checks translation status for a given content in a given language.
LingotekConfigManagementForm::checkTranslationStatuses public function Checks all translations statuses for a given content.
LingotekConfigManagementForm::create public static function Instantiates a new instance of this class. Overrides FormBase::create
LingotekConfigManagementForm::createBatch protected function Performs an operation to several values in a batch.
LingotekConfigManagementForm::createCancelBatch protected function Create and set a cancellation batch.
LingotekConfigManagementForm::createChangeProfileBatch protected function Create and set a profile change batch.
LingotekConfigManagementForm::createDebugExportBatch protected function Create and set an export batch.
LingotekConfigManagementForm::createDownloadBatch protected function Create and set a request target and download batch for all languages.
LingotekConfigManagementForm::createLanguageDownloadBatch protected function Create and set a request target and download batch for a given language.
LingotekConfigManagementForm::createLanguageRequestTranslationBatch protected function Create and set a request translations batch for all languages.
LingotekConfigManagementForm::createLanguageTranslationCheckStatusBatch protected function Create and set a check translation status batch for a given language.
LingotekConfigManagementForm::createRequestTranslationsBatch protected function Create and set a request translations batch for all languages.
LingotekConfigManagementForm::createTargetCancelBatch protected function Create and set a target cancellation batch.
LingotekConfigManagementForm::createTranslationCheckStatusBatch protected function Create and set a check translation status batch for all languages.
LingotekConfigManagementForm::createUploadBatch protected function Create and set an upload batch.
LingotekConfigManagementForm::createUploadCheckStatusBatch protected function Create and set a check upload status batch.
LingotekConfigManagementForm::debugExport public function Export source for debugging purposes.
LingotekConfigManagementForm::debugExportFinished public function
LingotekConfigManagementForm::downloadTranslation public function Download translation for a given content in a given language.
LingotekConfigManagementForm::downloadTranslations public function Download translations for a given content in all enabled languages.
LingotekConfigManagementForm::filterForm public function Form submission handler for filtering.
LingotekConfigManagementForm::formatTranslations protected function Formats the translation statuses for display.
LingotekConfigManagementForm::generateBulkOptions public function Get the bulk operations for the management form.
LingotekConfigManagementForm::generateOperations protected function Generates an array of operations to be performed in a batch.
LingotekConfigManagementForm::getActionUrlArguments protected function
LingotekConfigManagementForm::getAllBundles protected function
LingotekConfigManagementForm::getAllLanguages protected function Gets all the languages as options.
LingotekConfigManagementForm::getDestinationWithQueryArray protected function
LingotekConfigManagementForm::getFilter protected function Gets the filter to be applied. By default will be 'config'.
LingotekConfigManagementForm::getMetadataJobId protected function
LingotekConfigManagementForm::getSelectedMappers protected function Gets the select mappers from their IDs.
LingotekConfigManagementForm::getSourceActionUrl protected function
LingotekConfigManagementForm::getSourceStatus protected function Gets the source status of an config in a format ready to display.
LingotekConfigManagementForm::getSourceStatusText protected function
LingotekConfigManagementForm::getTargetActionUrl protected function
LingotekConfigManagementForm::getTargetStatusText protected function
LingotekConfigManagementForm::getTranslationsStatuses protected function Gets the translation status of an entity in a format ready to display.
LingotekConfigManagementForm::performTranslationDownload protected function Actually performs the translation download.
LingotekConfigManagementForm::redirectToAssignJobIdMultipleConfigForm protected function Redirect to assign Job ID form.
LingotekConfigManagementForm::redirectToClearJobIdMultipleConfigForm protected function Redirect to clear Job ID form.
LingotekConfigManagementForm::requestTranslation public function Request translations for a given content in a given language.
LingotekConfigManagementForm::requestTranslations public function Request all translations for a given content.
LingotekConfigManagementForm::resetFilterForm public function Form submission handler for resetting the filters.
LingotekConfigManagementForm::submitForm public function Form submission handler. Overrides FormInterface::submitForm
LingotekConfigManagementForm::uploadDocument public function Upload source for translation.
LingotekConfigManagementForm::__construct public function Constructs a new LingotekManagementForm object.
LingotekJobManagementConfigForm::$jobId protected property The job ID
LingotekJobManagementConfigForm::buildForm public function Form constructor. Overrides LingotekConfigManagementForm::buildForm
LingotekJobManagementConfigForm::getFilterTempStore protected function Overrides LingotekConfigManagementForm::getFilterTempStore
LingotekJobManagementConfigForm::getFormId public function Returns a unique string identifying the form. Overrides LingotekConfigManagementForm::getFormId
LingotekSetupTrait::$lingotek protected property A lingotek connector object
LingotekSetupTrait::checkSetup protected function Verify the Lingotek Translation module has been properly initialized.
LingotekSetupTrait::setupCompleted public function Checks if Lingotek module is completely set up.
LoggerChannelTrait::$loggerFactory protected property The logger channel factory service.
LoggerChannelTrait::getLogger protected function Gets the logger for a specific channel.
LoggerChannelTrait::setLoggerFactory public function Injects the logger channel factory.
MessengerTrait::$messenger protected property The messenger. 27
MessengerTrait::messenger public function Gets the messenger. 27
MessengerTrait::setMessenger public function Sets the messenger.
RedirectDestinationTrait::$redirectDestination protected property The redirect destination service. 1
RedirectDestinationTrait::getDestinationArray protected function Prepares a 'destination' URL query parameter for use with \Drupal\Core\Url.
RedirectDestinationTrait::getRedirectDestination protected function Returns the redirect destination service.
RedirectDestinationTrait::setRedirectDestination public function Sets the redirect destination service.
StringTranslationTrait::$stringTranslation protected property The string translation service. 4
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.