DependencyInjection/SuluArticleExtension.php
private function cloneArticleConfig(array $config, $type)
    {
        $result = [];
        foreach ($config as $item) {
            $result[] = ['path' => $item['path'], 'type' => $type];
        }

        return $result;
    }
private function cloneArticleConfig(array $config, $type)
    {
        $result = [];
        foreach ($config as $item) {
            $result[] = ['path' => $item['path'], 'type' => $type];
        }

        return $result;
    }
private function cloneArticleConfig ( array $ config , $ type ) { $ result = [ ] ; foreach ( $ config as $ item ) { $ result [ ] = [ 'path' => $ item [ 'path' ] , 'type' => $ type ] ; } return $ result ; }
Clone given path configuration and use given type.

@param array $config
@param string $type

@return array
Clone given path configuration and use given type .