public function TranslatorPluginUiBase::checkoutSettingsForm

Form callback for the checkout settings form.

Overrides TranslatorPluginUiInterface::checkoutSettingsForm

1 call to TranslatorPluginUiBase::checkoutSettingsForm()
FileTranslatorUi::checkoutSettingsForm in translators/tmgmt_file/src/FileTranslatorUi.php
Form callback for the checkout settings form.
3 methods override TranslatorPluginUiBase::checkoutSettingsForm()
FileTranslatorUi::checkoutSettingsForm in translators/tmgmt_file/src/FileTranslatorUi.php
Form callback for the checkout settings form.
LocalTranslatorUi::checkoutSettingsForm in translators/tmgmt_local/src/LocalTranslatorUi.php
Form callback for the checkout settings form.
TestTranslatorUi::checkoutSettingsForm in tmgmt_test/src/TestTranslatorUi.php
Form callback for the checkout settings form.

File

src/TranslatorPluginUiBase.php, line 20

Class

TranslatorPluginUiBase
Default ui controller class for translator plugins.

Namespace

Drupal\tmgmt

Code

public function checkoutSettingsForm(array $form, FormStateInterface $form_state, JobInterface $job) {
  if (!Element::children($form)) {
    $form['#description'] = t("The @translator translator doesn't provide any checkout settings.", array(
      '@translator' => $job
        ->getTranslator()
        ->label(),
    ));
  }
  return $form;
}