pty array. * * @since 4.0.0 */ protected function loadFormData() { return []; } /** * Method to allow derived classes to preprocess the data. * * @param string $context The context identifier. * @param mixed &$data The data to be processed. It gets altered directly. * @param string $group The name of the plugin group to import (defaults to "content"). * * @return void * * @since 4.0.0 */ protected function preprocessData($context, &$data, $group = 'content') { if ($this instanceof DispatcherAwareInterface) { $dispatcher = $this->getDispatcher(); } else { $dispatcher = Factory::getContainer()->get(DispatcherInterface::class); } // Get the dispatcher and load the users plugins. PluginHelper::importPlugin($group, null, true, $dispatcher); // Trigger the data preparation event. $data = $dispatcher->dispatch( 'onContentPrepareData', new Model\PrepareDataEvent('onContentPrepareData', [ 'context' => $context, 'data' => &$data, // @todo: Remove reference in Joomla 6, see PrepareDataEvent::__constructor() 'subject' => new \stdClass(), ]) )->getArgument('data', $data); } /** * Method to allow derived classes to preprocess the form. * * @param Form $form A Form object. * @param mixed $data The data expected for the form. * @param string $group The name of the plugin group to import (defaults to "content"). * * @return void * * @see FormField * @since 4.0.0 * @throws \Exception if there is an error in the form event. */ protected function preprocessForm(Form $form, $data, $group = 'content') { if ($this instanceof DispatcherAwareInterface) { $dispatcher = $this->getDispatcher(); } else { $dispatcher = Factory::getContainer()->get(DispatcherInterface::class); } // Import the appropriate plugin group. PluginHelper::importPlugin($group, null, true, $dispatcher); // Trigger the form preparation event. $dispatcher->dispatch( 'onContentPrepareForm', new Model\PrepareFormEvent('onContentPrepareForm', ['subject' => $form, 'data' => $data]) ); } /** * Get the FormFactoryInterface. * * @return FormFactoryInterface * * @since 4.0.0 * @throws \UnexpectedValueException May be thrown if the FormFactory has not been set. */ abstract public function getFormFactory(): FormFactoryInterface; } An Error Occurred: Whoops, looks like something went wrong.

Sorry, there was a problem we could not recover from.

The server returned a "500 - Whoops, looks like something went wrong."

Help me resolve this