loadForm('com_oauthserver.access_token', 'access_token', ['control' => 'jform', 'load_data' => $loadData]); if (empty($form)) { return false; } return $form; } /** * Method to get the data that should be injected in the form. * * @return mixed The data for the form. * * @throws \Exception * @since version */ protected function loadFormData(): mixed { // Check the session for previously entered form data. $data = Factory::getApplication()->getUserState('com_oauthserver.edit.access_token.data', []); if (empty($data)) { $data = $this->getItem(); } $this->preprocessData('com_oauthserver.access_token', $data); return $data; } }