function getTwigNamespaceConfig(workingDir) {
    workingDir = workingDir || process.cwd(); // eslint-disable-line no-param-reassign
    const twigNamespaceConfig = {};
    config.twigNamespaces.sets.forEach((namespaceSet) => {
      const pathArray = namespaceSet.paths.map((pathBase) => {
        const results = glob.sync(path.join(pathBase, '**/*.twig')).map((pathItem) => { // eslint-disable-line arrow-body-style
          return path.relative(workingDir, path.dirname(pathItem));
        });
        results.unshift(path.relative(workingDir, pathBase));
        return results;
      });
      twigNamespaceConfig[namespaceSet.namespace] = {
        paths: core.utils.uniqueArray(core.utils.flattenArray(pathArray)),
      };
    });
    return twigNamespaceConfig;
  }
function getTwigNamespaceConfig(workingDir) {
    workingDir = workingDir || process.cwd(); 
    const twigNamespaceConfig = {};
    config.twigNamespaces.sets.forEach((namespaceSet) => {
      const pathArray = namespaceSet.paths.map((pathBase) => {
        const results = glob.sync(path.join(pathBase, '**/*.twig')).map((pathItem) => { 
          return path.relative(workingDir, path.dirname(pathItem));
        });
        results.unshift(path.relative(workingDir, pathBase));
        return results;
      });
      twigNamespaceConfig[namespaceSet.namespace] = {
        paths: core.utils.uniqueArray(core.utils.flattenArray(pathArray)),
      };
    });
    return twigNamespaceConfig;
  }
function getTwigNamespaceConfig ( workingDir ) { workingDir = workingDir || process . cwd ( ) ; // eslint-disable-line no-param-reassign const twigNamespaceConfig = { } ; config . twigNamespaces . sets . forEach ( ( namespaceSet ) => { const pathArray = namespaceSet . paths . map ( ( pathBase ) => { const results = glob . sync ( path . join ( pathBase , '**/*.twig' ) ) . map ( ( pathItem ) => { // eslint-disable-line arrow-body-style return path . relative ( workingDir , path . dirname ( pathItem ) ) ; } ) ; results . unshift ( path . relative ( workingDir , pathBase ) ) ; return results ; } ) ; twigNamespaceConfig [ namespaceSet . namespace ] = { paths : core . utils . uniqueArray ( core . utils . flattenArray ( pathArray ) ) , } ; } ) ; return twigNamespaceConfig ; }
END: Compile
END : Compile