Form::isEmpty()

bool isEmpty() Returns whether the form is empty. Return Value bool

Form::isDisabled()

bool isDisabled() Returns whether this form is disabled. The content of a disabled form is displayed, but not allowed to be modified. The validation of modified disabled forms should fail. Forms whose parents are disabled are considered disabled regardless of their own state. Return Value bool

Form::initialize()

FormInterface initialize() Initializes the form tree. Should be called on the root form after constructing the tree. Return Value FormInterface The form instance

Form::has()

bool has(string $name) Returns whether a child with the given name exists. Parameters string $name The name of the child Return Value bool

Form::has()

bool has(string $name) Returns true if the named field exists. Parameters string $name The field name Return Value bool true if the field exists, false otherwise

Form::handleRequest()

FormInterface handleRequest(mixed $request = null) Inspects the given request and calls {@link submit()} if the form was submitted. Internally, the request is forwarded to the configured {@link RequestHandlerInterface} instance, which determines whether to submit the form or not. Parameters mixed $request The request to handle Return Value FormInterface The form instance

Form::getViewData()

mixed getViewData() Returns the data transformed by the value transformer. Return Value mixed

Form::getValues()

array getValues() Gets the field values. The returned array does not include file fields (see getFiles). Return Value array An array of field values

Form::getUri()

string getUri() Gets the URI of the form. The returned URI is not the same as the form "action" attribute. This method merges the value if the method is GET to mimics browser behavior. Return Value string The URI

Form::getTransformationFailure()

TransformationFailedException|null getTransformationFailure() Returns the data transformation failure, if any. Return Value TransformationFailedException|null The transformation failure