Upgrade to 3.2.0
This commit is contained in:
@@ -8,6 +8,12 @@ use Kirby\Form\Form as BaseForm;
|
||||
* Extension of `Kirby\Form\Form` that introduces
|
||||
* a Form::for method that creates a proper form
|
||||
* definition for any Cms Model.
|
||||
*
|
||||
* @package Kirby Cms
|
||||
* @author Bastian Allgeier <bastian@getkirby.com>
|
||||
* @link https://getkirby.com
|
||||
* @copyright Bastian Allgeier GmbH
|
||||
* @license https://getkirby.com/license
|
||||
*/
|
||||
class Form extends BaseForm
|
||||
{
|
||||
@@ -38,6 +44,11 @@ class Form extends BaseForm
|
||||
parent::__construct($props);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Kirby\Cms\Model $model
|
||||
* @param array $props
|
||||
* @return self
|
||||
*/
|
||||
public static function for(Model $model, array $props = [])
|
||||
{
|
||||
// get the original model data
|
||||
|
Reference in New Issue
Block a user