Back to FormBehaviorTrait class

Method loadFormData

protected array
loadFormData
()
Method to get the data that should be injected in the form.
Returns
  • array The default data is an empty array.
Since
  • 4.0.0

Method loadFormData - Source code

/**
 * Method to get the data that should be injected in the form.
 *
 * @return  array  The default data is an empty array.
 *
 * @since   4.0.0
 */
protected function loadFormData()
{
    return [];
}