FOF30\Factory\FactoryInterface::form PHP Метод

form() публичный Метод

Creates a new Form object
public form ( string $name, string $source, string $viewName, array $options = [], boolean $replace = true, boolean $xpath = false ) : Form | null
$name string The name of the form.
$source string The form source filename without path and .xml extension e.g. "form.default" OR raw XML data
$viewName string The name of the view you're getting the form for.
$options array Options to the Form object
$replace boolean Should form fields be replaced if a field already exists with the same group/name?
$xpath boolean An optional xpath to search for the fields.
Результат FOF30\Form\Form | null The loaded form or null if the form filename doesn't exist
    function form($name, $source, $viewName, array $options = array(), $replace = true, $xpath = false);