Pagekit\Console\Commands\TranslationFetchCommand::getPath PHP Méthode

getPath() protected méthode

Returns the extension path.
protected getPath ( $resource ) : string | boolean
$resource
Résultat string | boolean
    protected function getPath($resource)
    {
        $vendor = 'pagekit';
        if ($resource == "system") {
            $path = sprintf('%s/app/system', $this->container['path']);
        } else {
            $path = sprintf('%s/%s/%s', $this->container['path.packages'], $vendor, $resource);
        }
        if (!is_dir($path)) {
            return false;
        }
        return $path;
    }
TranslationFetchCommand