Back to WorkflowBehaviorTrait class

Method workflowPreprocessForm

public void
workflowPreprocessForm
(\Joomla\CMS\Form\Form $form, mixed $data)
Method to allow derived classes to preprocess the form.
Parameters
  • \Joomla\CMS\Form\Form $form A Form object.
  • mixed $data The data expected for the form.
Returns
  • void
Since
  • 4.0.0
-
  • \Joomla\CMS\MVC\Model\FormField

Method workflowPreprocessForm - Source code

/**
 * 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();
}