CoreFiles by mySites.guru
FormModelInterface.php38 lines, 849 bytes, from Joomla_4.2.3-Stable-Full_Package.zip
Raw History Compare with 4.2.2
md5
766fe6747c433172d726c599a63a6988
sha1
f98470155a18ed8684806295d0a6796a7c892aca
sha256
340c473b33395d108f0931d05c764844da6d747b78c897c76f4e3de4ccbd4731
<?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 = array(), $loadData = true);
}

The same content is in 11 releases, Joomla 4.2.1 to 4.3.0-alpha2. See them all, or every version of this file.