Alias for the `resourcesFolder` function.

@param string $extensionKey The extension key
@param string $prefix The optional prefix, defaults to `EXT:`
@return string The resources folder
2085
public static function getResourcesFolder(string $extensionKey, string $prefix = 'EXT:'): string {
    return self::resourcesFolder($extensionKey, $prefix);
  }
5308
public function load($path, $prefix = '')
    {
        $config = $this->readConfig($path);

        foreach ($config as $section => $values) {
            if (in_array($section, self::$_extensionTypes)) {
                // extension section, merge in the defaults.
                $defaults = $this->get($section);
                if ($defaults) {
                    $values = array_merge($defaults, $values);
                }
                $this->addExtension($section, $values);
            } elseif (strtolower($section) === self::GENERAL) {
                if (!empty($values['timestampPath'])) {
                    $path = $this->_replacePathConstants($values['timestampPath']);
                    $values['timestampPath'] = rtrim($path, '/') . '/';
                }
                $this->set(self::GENERAL, $values);
            } elseif (strpos($section, self::FILTER_PREFIX) === 0) {
                // filter section.
                $name = str_replace(self::FILTER_PREFIX, '', $section);
                $this->filterConfig($name, $values);
            } else {
                $lastDot = strrpos($section, '.') + 1;
                $extension = substr($section, $lastDot);
                $key = $section;

                // must be a build target.
                $this->addTarget($prefix . $key, $values);
            }
        }

        $this->resolveExtends();

        return $this;
    }
722602
protected function getGroupResourceName($prefix, $resource, $method)
    {
        $availableLocales = $this->languageRepository->availableLocales();

        // Remove segments from group prefix that are equal to one of the available locales:
        $groupSegments = explode('/', $this->router->getLastGroupPrefix());
        $groupSegments = array_filter($groupSegments, function ($segment) use ($availableLocales) {
            return !in_array($segment, $availableLocales);
        });
        $group = trim(implode('.', $groupSegments), '.');

        if (empty($group)) {
            return trim("{$prefix}{$resource}.{$method}", '.');
        }

        return trim("{$prefix}{$group}.{$resource}.{$method}", '.');
    }
869205
public static function getPlaceholdersFolder(string $extensionKey, string $prefix = 'EXT:'): string {
    return self::placeholdersFolder($extensionKey, $prefix);
  }
1166965
public static function flexFormsFolder(string $extensionKey, string $prefix = 'FILE:EXT:'): string {
    $configurationFolder = self::configurationFolder($extensionKey, $prefix);

    return "${configurationFolder}/FlexForms";
  }
505893
private function getFunctionName($prefix, $file, $suffix, $key = 0)
    {
        if (preg_match(self::getRegex(), strtolower($file), $matches)) {
            $format = self::$suffixes[$matches[1]];

            if (is_array($format)) {
                $format = $format[$key];
            }

            return sprintf('%s%s%s', $prefix, $format, $suffix);
        }
    }
531533
protected function getFileName(string $key): string
    {
        return $this->cacheDir . \DIRECTORY_SEPARATOR . self::CACHE_FILE_PREFIX . $key . self::CACHE_FILE_SUBFIX;
    }
704012
public function fullPath($prefix = null)
    {
        if ($prefix) {
            return $this->getFolder() . $prefix . '_' . $this->getFilename();
        }

        return $this->getFolder() . $this->getFilename();
    }
50701
public static function getPublicFolder(string $extensionKey, string $prefix = 'EXT:'): string {
    return self::publicFolder($extensionKey, $prefix);
  }
835673
protected function file($key)
    {
        return $this->dir . DIRECTORY_SEPARATOR . $this->key($key) . "." . $this->fileExtension;
    }
1005646
public function getQueryFields($usePrefix = false, $prefix = '')
    {
        $fields = $this->fields;

        if ($usePrefix) {
            $prefix = (empty($prefix) ? $this->getTable() : $prefix);
            $fields = array();
            foreach ($this->fields as $field) {
                $fields[] = $prefix . '.' . $field;
            }
        }

        return implode(', ', $fields);
    }
820694
public static function assetsFolder(string $extensionKey, string $prefix = 'EXT:'): string {
    $publicFolder = self::publicFolder($extensionKey, $prefix);

    return "${publicFolder}/Assets";
  }
84669
public static function getTempFilename(string $path = '', string $prefix = '', string $extension = ''): string
    {
        if ($path === '') {
            $path = sys_get_temp_dir();
        }
        if ($extension !== '' && substr($extension, 0, 1) !== '.') {
            $extension = '.' . $extension;
        }
        $filename = Str::unique($prefix, $extension);
        if (is_dir($path)) {
            touch($path . '/' . $filename);
        }
        return $path . '/' . $filename;
    }
440327
protected function getGroupResourceName($prefix, $resource, $method)
    {
        $group = trim(
            str_replace('/', '.', $this->router->getLastGroupPrefix()), '.'
        );

        if (empty($group)) {
            return trim("{$prefix}{$resource}.{$method}", '.');
        }

        return trim("{$prefix}{$group}.{$resource}.{$method}", '.');
    }
902283
private function salted($key, $suffix = null)
    {
        $delimiter = ':';
        if (defined('static::DELIMITER')) {
            $delimiter = static::DELIMITER;
        }

        if (defined('static::PREFIX')) {
            $key = sprintf('%s%s%s', static::PREFIX, $delimiter, $key);
        }

        if ($suffix) {
            return sprintf('%s%s%s', $key, $delimiter, $suffix);
        }

        return $key;
    }
346203
protected function getFilename(Dictionary $dictionary, string $extension, string $suffix = '')
    {
        return $this->convertToValidFilenameWithoutExtension(
            ($dictionary->getMetadata()['@title'] ?? self::DEFAULT_FILENAME) . $suffix
        ) . ".$extension";
    }
83812
protected function GetResourceNamespace($prefix, $resourceKey) {
        $resourceNamespace = $prefix . ucfirst(strtolower($resourceKey)) . "Resx_" . $this->CultureValue;
        return $resourceNamespace;
    }