I have a field widget with three different settings, two of them are just string values but the third is multiple checkboxes.
This page describes how to set default settings, simple enough for integer or string and single value fields, but I'm not sure how to set default values for some of the checkboxes in the multiple checkbox element.
Below is the function where i need to set some of the values in the multiple checkboxes element to true. I can just put 'checkboxes_element' => '', as a default value which makes them all unticked, but i need to set some of those checkboxes as true for the default value.
/**
* {@inheritdoc}
*/
public static function defaultSettings() {
return [
// Create the custom setting 'size', and
// assign a default value of 60
'size' => 60,
] + parent::defaultSettings();
}