protected function _dasherize($url)
    {
        foreach (['controller', 'plugin', 'action'] as $element) {
            if (!empty($url[$element])) {
                $url[$element] = Inflector::dasherize($url[$element]);
            }
        }

        return $url;
    }
protected function _dasherize($url)
    {
        foreach (['controller', 'plugin', 'action'] as $element) {
            if (!empty($url[$element])) {
                $url[$element] = Inflector::dasherize($url[$element]);
            }
        }

        return $url;
    }
protected function _dasherize ( $ url ) { foreach ( [ 'controller' , 'plugin' , 'action' ] as $ element ) { if ( ! empty ( $ url [ $ element ] ) ) { $ url [ $ element ] = Inflector :: dasherize ( $ url [ $ element ] ) ; } } return $ url ; }
Helper method for dasherizing keys in a URL array.

@param array $url An array of URL keys.
@return array
Helper method for dasherizing keys in a URL array .