/**
* Method to allow derived classes to preprocess the form.
*
* @param Form $form A Form object.
* @param mixed $data The data expected for the form.
*
* @return void
*
* @since 4.0.0
* @see FormField
*/
public function workflowPreprocessForm(Form $form, $data)
{
$this->addTransitionField($form, $data);
if (!$this->workflowEnabled) {
return;
}
// Import the workflow plugin group to allow form manipulation.
$this->importWorkflowPlugins();
}