class LingotekJobManagementConfigForm in Lingotek Translation 3.7.x
Same name and namespace in other branches
- 8.2 src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
- 4.0.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
- 3.0.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
- 3.1.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
- 3.2.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
- 3.3.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
- 3.4.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
- 3.5.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
- 3.6.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
- 3.8.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm
Form for bulk management of job filtered content.
Hierarchy
- class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, MessengerTrait, RedirectDestinationTrait, StringTranslationTrait
- class \Drupal\lingotek\Form\LingotekConfigManagementForm uses LingotekSetupTrait
- class \Drupal\lingotek\Form\LingotekJobManagementConfigForm
- class \Drupal\lingotek\Form\LingotekConfigManagementForm uses LingotekSetupTrait
Expanded class hierarchy of LingotekJobManagementConfigForm
1 string reference to 'LingotekJobManagementConfigForm'
File
- src/
Form/ LingotekJobManagementConfigForm.php, line 11
Namespace
Drupal\lingotek\FormView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DependencySerializationTrait:: |
protected | property | ||
DependencySerializationTrait:: |
protected | property | ||
DependencySerializationTrait:: |
public | function | 2 | |
DependencySerializationTrait:: |
public | function | 2 | |
FormBase:: |
protected | property | The config factory. | 3 |
FormBase:: |
protected | property | The request stack. | 1 |
FormBase:: |
protected | property | The route match. | |
FormBase:: |
protected | function | Retrieves a configuration object. | |
FormBase:: |
protected | function | Gets the config factory for this form. | 3 |
FormBase:: |
private | function | Returns the service container. | |
FormBase:: |
protected | function | Gets the current user. | |
FormBase:: |
protected | function | Gets the request object. | |
FormBase:: |
protected | function | Gets the route match. | |
FormBase:: |
protected | function | Gets the logger for a specific channel. | |
FormBase:: |
protected | function | Returns a redirect response object for the specified route. | |
FormBase:: |
public | function | Resets the configuration factory. | |
FormBase:: |
public | function | Sets the config factory for this form. | |
FormBase:: |
public | function | Sets the request stack object to use. | |
FormBase:: |
public | function |
Form validation handler. Overrides FormInterface:: |
72 |
LingotekConfigManagementForm:: |
protected | property | The type of config to display. | |
LingotekConfigManagementForm:: |
protected | property | The language-locale mapper. | |
LingotekConfigManagementForm:: |
protected | property | The language manager. | |
LingotekConfigManagementForm:: |
protected | property | The Lingotek configuration service. | |
LingotekConfigManagementForm:: |
protected | property | A array of configuration mapper instances. | |
LingotekConfigManagementForm:: |
protected | property | The tempstore factory. | |
LingotekConfigManagementForm:: |
protected | property | The Lingotek content translation service. | |
LingotekConfigManagementForm:: |
public | function | ||
LingotekConfigManagementForm:: |
public | function | Cancel the content from Lingotek. | |
LingotekConfigManagementForm:: |
public | function | Cancel the content from Lingotek. | |
LingotekConfigManagementForm:: |
public | function | Change Translation Profile. | |
LingotekConfigManagementForm:: |
public | function | Check document upload status for a given content. | |
LingotekConfigManagementForm:: |
public | function | Checks translation status for a given content in a given language. | |
LingotekConfigManagementForm:: |
public | function | Checks all translations statuses for a given content. | |
LingotekConfigManagementForm:: |
public static | function |
Instantiates a new instance of this class. Overrides FormBase:: |
|
LingotekConfigManagementForm:: |
protected | function | Performs an operation to several values in a batch. | |
LingotekConfigManagementForm:: |
protected | function | Create and set a cancellation batch. | |
LingotekConfigManagementForm:: |
protected | function | Create and set a profile change batch. | |
LingotekConfigManagementForm:: |
protected | function | Create and set an export batch. | |
LingotekConfigManagementForm:: |
protected | function | Create and set a request target and download batch for all languages. | |
LingotekConfigManagementForm:: |
protected | function | Create and set a request target and download batch for a given language. | |
LingotekConfigManagementForm:: |
protected | function | Create and set a request translations batch for all languages. | |
LingotekConfigManagementForm:: |
protected | function | Create and set a check translation status batch for a given language. | |
LingotekConfigManagementForm:: |
protected | function | Create and set a request translations batch for all languages. | |
LingotekConfigManagementForm:: |
protected | function | Create and set a target cancellation batch. | |
LingotekConfigManagementForm:: |
protected | function | Create and set a check translation status batch for all languages. | |
LingotekConfigManagementForm:: |
protected | function | Create and set an upload batch. | |
LingotekConfigManagementForm:: |
protected | function | Create and set a check upload status batch. | |
LingotekConfigManagementForm:: |
public | function | Export source for debugging purposes. | |
LingotekConfigManagementForm:: |
public | function | ||
LingotekConfigManagementForm:: |
public | function | Download translation for a given content in a given language. | |
LingotekConfigManagementForm:: |
public | function | Download translations for a given content in all enabled languages. | |
LingotekConfigManagementForm:: |
public | function | Form submission handler for filtering. | |
LingotekConfigManagementForm:: |
protected | function | Formats the translation statuses for display. | |
LingotekConfigManagementForm:: |
public | function | Get the bulk operations for the management form. | |
LingotekConfigManagementForm:: |
protected | function | Generates an array of operations to be performed in a batch. | |
LingotekConfigManagementForm:: |
protected | function | ||
LingotekConfigManagementForm:: |
protected | function | ||
LingotekConfigManagementForm:: |
protected | function | Gets all the languages as options. | |
LingotekConfigManagementForm:: |
protected | function | ||
LingotekConfigManagementForm:: |
protected | function | Gets the filter to be applied. By default will be 'config'. | |
LingotekConfigManagementForm:: |
protected | function | ||
LingotekConfigManagementForm:: |
protected | function | Gets the select mappers from their IDs. | |
LingotekConfigManagementForm:: |
protected | function | ||
LingotekConfigManagementForm:: |
protected | function | Gets the source status of an config in a format ready to display. | |
LingotekConfigManagementForm:: |
protected | function | ||
LingotekConfigManagementForm:: |
protected | function | ||
LingotekConfigManagementForm:: |
protected | function | ||
LingotekConfigManagementForm:: |
protected | function | Gets the translation status of an entity in a format ready to display. | |
LingotekConfigManagementForm:: |
protected | function | Actually performs the translation download. | |
LingotekConfigManagementForm:: |
protected | function | Redirect to assign Job ID form. | |
LingotekConfigManagementForm:: |
protected | function | Redirect to clear Job ID form. | |
LingotekConfigManagementForm:: |
public | function | Request translations for a given content in a given language. | |
LingotekConfigManagementForm:: |
public | function | Request all translations for a given content. | |
LingotekConfigManagementForm:: |
public | function | Form submission handler for resetting the filters. | |
LingotekConfigManagementForm:: |
public | function |
Form submission handler. Overrides FormInterface:: |
|
LingotekConfigManagementForm:: |
public | function | Upload source for translation. | |
LingotekConfigManagementForm:: |
public | function | Constructs a new LingotekManagementForm object. | |
LingotekJobManagementConfigForm:: |
protected | property | The job ID | |
LingotekJobManagementConfigForm:: |
public | function |
Form constructor. Overrides LingotekConfigManagementForm:: |
|
LingotekJobManagementConfigForm:: |
protected | function |
Overrides LingotekConfigManagementForm:: |
|
LingotekJobManagementConfigForm:: |
public | function |
Returns a unique string identifying the form. Overrides LingotekConfigManagementForm:: |
|
LingotekSetupTrait:: |
protected | property | A lingotek connector object | |
LingotekSetupTrait:: |
protected | function | Verify the Lingotek Translation module has been properly initialized. | |
LingotekSetupTrait:: |
public | function | Checks if Lingotek module is completely set up. | |
LoggerChannelTrait:: |
protected | property | The logger channel factory service. | |
LoggerChannelTrait:: |
protected | function | Gets the logger for a specific channel. | |
LoggerChannelTrait:: |
public | function | Injects the logger channel factory. | |
MessengerTrait:: |
protected | property | The messenger. | 27 |
MessengerTrait:: |
public | function | Gets the messenger. | 27 |
MessengerTrait:: |
public | function | Sets the messenger. | |
RedirectDestinationTrait:: |
protected | property | The redirect destination service. | 1 |
RedirectDestinationTrait:: |
protected | function | Prepares a 'destination' URL query parameter for use with \Drupal\Core\Url. | |
RedirectDestinationTrait:: |
protected | function | Returns the redirect destination service. | |
RedirectDestinationTrait:: |
public | function | Sets the redirect destination service. | |
StringTranslationTrait:: |
protected | property | The string translation service. | 4 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |