CoreFiles by mySites.guru
FormFactory.php34 lines, 717 bytes, from Joomla_4.0.2-Stable-Full_Package.zip
Raw History Compare with 4.0.1
md5
7d613174c8f3d196b80a6e9a753e9cfa
sha1
d4a8588433fa94a7b5952ab98e89b2d88dae1dc8
sha256
dc44a83205d26d06031976adaeaf6219ae8cb8dba273b44773e0838c09bac370
<?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;

\defined('_JEXEC') or die;

/**
 * Default factory for creating Form objects
 *
 * @since  4.0.0
 */
class FormFactory implements 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 = array()): Form
	{
		return new Form($name, $options);
	}
}

The same content is in 48 releases, Joomla 4.0.0-beta6 to 4.2.0-alpha2. See them all, or every version of this file.