Newscoop\Entity\Repository\TemplateRepository::formatKey PHP Method

formatKey() public method

Format key
public formatKey ( string $key ) : string
$key string
return string
    public function formatKey($key)
    {
        $key = trim($key, '/');
        return ltrim("{$this->basePath}/{$key}", '/');
    }