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);
}