src/FieldHandlers/Provider/RenderInput/SublistRenderer.php
protected function _dynamicSelectStructure(array $options) : array
    {
        $result = [];
        foreach ($options as $k => $v) {
            $result[$v['label']] = !empty($v['children']) ? $this->_dynamicSelectStructure($v['children']) : [];
        }

        return $result;
    }
protected function _dynamicSelectStructure(array $options) : array
    {
        $result = [];
        foreach ($options as $k => $v) {
            $result[$v['label']] = !empty($v['children']) ? $this->_dynamicSelectStructure($v['children']) : [];
        }

        return $result;
    }
protected function _dynamicSelectStructure ( array $ options ) : array { $ result = [ ] ; foreach ( $ options as $ k => $ v ) { $ result [ $ v [ 'label' ] ] = ! empty ( $ v [ 'children' ] ) ? $ this -> _dynamicSelectStructure ( $ v [ 'children' ] ) : [ ] ; } return $ result ; }
Converts list options to supported dynamiSelect lib structure

@link https://github.com/sorites/dynamic-select
@param mixed[] $options List options
@return mixed[]
Converts list options to supported dynamiSelect lib structure