Cake\Controller\Component\PaginatorComponent::_extractFinder PHP Метод

_extractFinder() защищенный Метод

Extracts the finder name and options out of the provided pagination options
protected _extractFinder ( array $options ) : array
$options array the pagination options
Результат array An array containing in the first position the finder name and in the second the options to be passed to it
    protected function _extractFinder($options)
    {
        $type = !empty($options['finder']) ? $options['finder'] : 'all';
        unset($options['finder'], $options['maxLimit']);
        if (is_array($type)) {
            $options = (array) current($type) + $options;
            $type = key($type);
        }
        return [$type, $options];
    }