Provides a simple wrapper for the checkout info fieldset.
\Drupal\tmgmt\JobInterface $job: Translation job object.
$form: Partial form structure to be wrapped in the fieldset.
The provided form structure wrapped in a collapsed fieldset.
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;
}