FormConfigBuilderInterface::setDataLocked()

FormConfigBuilderInterface setDataLocked(bool $locked)

Locks the form's data to the data passed in the configuration.

A form with locked data is restricted to the data passed in this configuration. The data can only be modified then by submitting the form.

Parameters

bool $locked Whether to lock the default data

Return Value

FormConfigBuilderInterface The configuration object
doc_Symfony
2016-10-28 06:18:09
Comments
Leave a Comment

Please login to continue.