protected function LingotekManagementFormBase::getBulkOptions in Lingotek Translation 3.0.x
Same name and namespace in other branches
- 8.2 src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
- 4.0.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
- 3.1.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
- 3.2.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
- 3.3.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
- 3.4.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
- 3.5.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
- 3.6.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
- 3.7.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
- 3.8.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
Gets the bulk options form array structure.
Return value
array A form array.
2 calls to LingotekManagementFormBase::getBulkOptions()
- LingotekJobManagementContentEntitiesForm::getBulkOptions in src/
Form/ LingotekJobManagementContentEntitiesForm.php - Gets the bulk options form array structure.
- LingotekManagementFormBase::buildForm in src/
Form/ LingotekManagementFormBase.php - Form constructor.
1 method overrides LingotekManagementFormBase::getBulkOptions()
- LingotekJobManagementContentEntitiesForm::getBulkOptions in src/
Form/ LingotekJobManagementContentEntitiesForm.php - Gets the bulk options form array structure.
File
- src/
Form/ LingotekManagementFormBase.php, line 452
Class
- LingotekManagementFormBase
- Form for bulk management of content.
Namespace
Drupal\lingotek\FormCode
protected function getBulkOptions() {
$options = [];
$options['operation'] = [
'#type' => 'select',
'#title' => $this
->t('Action'),
'#title_display' => 'invisible',
'#options' => $this
->generateBulkOptions(),
];
$options['submit'] = [
'#type' => 'submit',
'#value' => $this
->t('Execute'),
];
$options['show_advanced'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Show advanced options'),
'#title_display' => 'before',
];
$options['job_id'] = [
'#type' => 'lingotek_job_id',
'#title' => $this
->t('Job ID'),
'#description' => $this
->t('Assign a job id that you can filter on later on the TMS or in this page.'),
'#states' => [
'visible' => [
':input[name="show_advanced"]' => [
'checked' => TRUE,
],
],
],
];
return $options;
}