src/Controller/Component/CrudComponent.php
public function normalizeArray(array $array)
    {
        $normal = [];

        foreach ($array as $action => $config) {
            if (is_string($config)) {
                $config = ['className' => $config];
            }

            if (is_int($action)) {
                list(, $action) = pluginSplit($config['className']);
            }

            $action = Inflector::variable($action);
            $normal[$action] = $config;
        }

        return $normal;
    }
public function normalizeArray(array $array)
    {
        $normal = [];

        foreach ($array as $action => $config) {
            if (is_string($config)) {
                $config = ['className' => $config];
            }

            if (is_int($action)) {
                list(, $action) = pluginSplit($config['className']);
            }

            $action = Inflector::variable($action);
            $normal[$action] = $config;
        }

        return $normal;
    }
public function normalizeArray ( array $ array ) { $ normal = [ ] ; foreach ( $ array as $ action => $ config ) { if ( is_string ( $ config ) ) { $ config = [ 'className' => $ config ] ; } if ( is_int ( $ action ) ) { list ( , $ action ) = pluginSplit ( $ config [ 'className' ] ) ; } $ action = Inflector :: variable ( $ action ) ; $ normal [ $ action ] = $ config ; } return $ normal ; }
Normalize config array

@param array $array List to normalize
@return array
Normalize config array