Upgrade to 3.2.0

This commit is contained in:
Bastian Allgeier
2019-06-25 09:56:08 +02:00
parent 9e18cf635d
commit 9c89153d35
296 changed files with 14408 additions and 2504 deletions

View File

@@ -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