Stay organized with collections Save and categorize content based on your preferences.

blockly > Field > saveLegacyState

Field.saveLegacyState() method

Returns a stringified version of the XML state, if it should be used. Otherwise this returns null, to signal the field should use its own serialization.


protected saveLegacyState(callingClass: FieldProto): string | null;


Parameter Type Description
callingClass FieldProto The class calling this method. Used to see if this has overridden any relevant hooks.


string | null

The stringified version of the XML state, or null.