Helper function for retrieving the rendered job checkout information.
function checkoutInfo(JobInterface $job) {
// The translator might have been disabled or removed.
if (!$job
->hasTranslator()) {
return array(
'#markup' => t('The job has no provider assigned.'),
);
}
$translator = $job
->getTranslator();
$plugin_ui = $this->translatorManager
->createUIInstance($translator
->getPluginId());
return $plugin_ui
->checkoutInfo($job);
}