Yosymfony\Spress\Core\ContentManager\Permalink\PermalinkGenerator::generateUrlPath PHP Method

generateUrlPath() private method

private generateUrlPath ( $template, array $placeholders = [] )
$placeholders array
    private function generateUrlPath($template, array $placeholders = [])
    {
        if (0 == strlen($template)) {
            throw new \InvalidArgumentException('The template param must be a template or a URL.');
        }
        $permalink = str_replace(array_keys($placeholders), $placeholders, $template, $count);
        return $this->sanitize($permalink);
    }