public function TranslatorPluginUiBase::checkoutInfoWrapper

Provides a simple wrapper for the checkout info fieldset.

Parameters

\Drupal\tmgmt\JobInterface $job: Translation job object.

$form: Partial form structure to be wrapped in the fieldset.

Return value

The provided form structure wrapped in a collapsed fieldset.

1 call to TranslatorPluginUiBase::checkoutInfoWrapper()
FileTranslatorUi::checkoutInfo in translators/tmgmt_file/src/FileTranslatorUi.php
Retrieves information about a translation job.

File

src/TranslatorPluginUiBase.php, line 45

Class

TranslatorPluginUiBase
Default ui controller class for translator plugins.

Namespace

Drupal\tmgmt

Code

public function checkoutInfoWrapper(JobInterface $job, $form) {
  $label = $job
    ->getTranslator()
    ->label();
  $form += array(
    '#title' => t('@translator translation job information', array(
      '@translator' => $label,
    )),
    '#type' => 'details',
    '#open' => FALSE,
  );
  return $form;
}