public function LingotekJobManagementConfigForm::buildForm in Lingotek Translation 3.5.x
Same name and namespace in other branches
- 8.2 src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm::buildForm()
- 4.0.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm::buildForm()
- 3.0.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm::buildForm()
- 3.1.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm::buildForm()
- 3.2.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm::buildForm()
- 3.3.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm::buildForm()
- 3.4.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm::buildForm()
- 3.6.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm::buildForm()
- 3.7.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm::buildForm()
- 3.8.x src/Form/LingotekJobManagementConfigForm.php \Drupal\lingotek\Form\LingotekJobManagementConfigForm::buildForm()
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides LingotekConfigManagementForm::buildForm
File
- src/
Form/ LingotekJobManagementConfigForm.php, line 27
Class
- LingotekJobManagementConfigForm
- Form for bulk management of job filtered content.
Namespace
Drupal\lingotek\FormCode
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;
}