Symbiote\Components\ComponentService::exportNestedDataForTemplates
Recursively replace nonassociative arrays with ArrayListExportable and output with 'var_export' to produce template logic for the nested data.
Signature
private function exportNestedDataForTemplates(array
$array,
[boolean
$root = true] )
Parameters
$array
— array- The nested data to export
$root
— boolean- Ignore this
Returns
- string
- Executable template logic