src/FormParameter/ParameterRegistry.php
public function collection($collectionMethod = null)
    {
        $collection = collection($this->_loaded);
        if (is_callable($collectionMethod)) {
            return $collectionMethod($collection);
        }

        return $collection;
    }
public function collection($collectionMethod = null)
    {
        $collection = collection($this->_loaded);
        if (is_callable($collectionMethod)) {
            return $collectionMethod($collection);
        }

        return $collection;
    }
public function collection ( $ collectionMethod = null ) { $ collection = collection ( $ this -> _loaded ) ; if ( is_callable ( $ collectionMethod ) ) { return $ collectionMethod ( $ collection ) ; } return $ collection ; }
Return collection of loaded parameters

@return \Cake\Collection\Collection
Return collection of loaded parameters