CoreFiles by mySites.guru
FormFactoryInterface.php34 lines, 782 bytes, from Joomla_5.3.0-Stable-Full_Package.zip
Raw History Compare with 5.2.6
md5
0b99285ed382f81d8b53580d225abcbc
sha1
65b06d9b970204685a51f2031cb701e833cd104a
sha256
5a152f464789b5a3c744fc213a478bb25677171a0f3ab42bd47ab38728367bb7
<?php

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

namespace Joomla\CMS\Form;

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

/**
 * Interface defining a factory which can create Form objects
 *
 * @since  4.0.0
 */
interface FormFactoryInterface
{
    /**
     * Method to get an instance of a form.
     *
     * @param   string  $name     The name of the form.
     * @param   array   $options  An array of form options.
     *
     * @return  Form
     *
     * @since   4.0.0
     */
    public function createForm(string $name, array $options = []): Form;
}

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