public function generateForm(array $data)
	{
		/** @var Form $form */
		$form = new $this->formClass;

		if (array_key_exists('attributes', $data))
		{
			$form->setAttributes($data['attributes']);
		}

		if (array_key_exists('content', $data))
		{
			$content = $this->generate($data['content']);
			$form->setContents($content);
		}

		return $form;
	}
public function generateForm(array $data)
	{
		/** @var Form $form */
		$form = new $this->formClass;

		if (array_key_exists('attributes', $data))
		{
			$form->setAttributes($data['attributes']);
		}

		if (array_key_exists('content', $data))
		{
			$content = $this->generate($data['content']);
			$form->setContents($content);
		}

		return $form;
	}
public function generateForm ( array $ data ) { /** @var Form $form */ $ form = new $ this -> formClass ; if ( array_key_exists ( 'attributes' , $ data ) ) { $ form -> setAttributes ( $ data [ 'attributes' ] ) ; } if ( array_key_exists ( 'content' , $ data ) ) { $ content = $ this -> generate ( $ data [ 'content' ] ) ; $ form -> setContents ( $ content ) ; } return $ form ; }
Attempts to generate a form from the given

@param array $data

@return Form

@since 2.0
Attempts to generate a form from the given