You are here

protected function LingotekManagementFormBase::getBulkOptions in Lingotek Translation 3.6.x

Same name and namespace in other branches
  1. 8.2 src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
  2. 4.0.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
  3. 3.0.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
  4. 3.1.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
  5. 3.2.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
  6. 3.3.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
  7. 3.4.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
  8. 3.5.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
  9. 3.7.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::getBulkOptions()
  10. 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 473

Class

LingotekManagementFormBase
Form for bulk management of content.

Namespace

Drupal\lingotek\Form

Code

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;
}