CoreFiles by mySites.guru
FormModelInterface.php38 lines, 844 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
d2d7457ae829df13e42f8a813d830af5
sha1
3a3690ccd654c9e4e3c3a69913fe980e5eec9614
sha256
68716eecfe0f91ae4db612d06d7095f357ca3ea03577fcd5a068b9c8bbafbeb2
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\MVC\Model;

use Joomla\CMS\Form\Form;

// phpcs:disable PSR1.Files.SideEffects
\defined('JPATH_PLATFORM') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Interface for a form model.
 *
 * @since  4.0.0
 */
interface FormModelInterface
{
    /**
     * Method for getting a form.
     *
     * @param   array    $data      Data for the form.
     * @param   boolean  $loadData  True if the form is to load its own data (default case), false if not.
     *
     * @return  Form
     *
     * @since   4.0.0
     *
     * @throws \Exception
     */
    public function getForm($data = [], $loadData = true);
}

The same content is in 59 releases, Joomla 4.2.7-rc1 to 4.4.14. See them all, or every version of this file.