FOF30\Model\DataModel::preprocessForm PHP Method

preprocessForm() protected method

Method to allow derived classes to preprocess the form.
Since: 2.0
protected preprocessForm ( Form &$form, &$data, string $group = 'content' ) : void
$form FOF30\Form\Form
$group string The name of the plugin group to import (defaults to "content").
return void
    protected function preprocessForm(Form &$form, &$data, $group = 'content')
    {
        // Import the appropriate plugin group.
        $this->container->platform->importPlugin($group);
        // Trigger the form preparation event.
        $this->container->platform->runPlugins('onContentPrepareForm', array(&$form, &$data));
    }