UrlRewritingTrait
trait UrlRewritingTrait
A trait for managing Rewritten URLs from model classes
Methods
getRewrittenUrlViewName()
No description
getUrl(
string $locale = null)
Get the object URL for the given locale, rewritten if rewriting is enabled.
generateRewrittenUrl(
string $locale)
Generate a rewritten URL from the object title, and store it in the rewriting table
null
getRewrittenUrl(
string $locale)
return the rewritten URL for the given locale
markRewrittenUrlObsolete()
Mark the current URL as obseolete
$this
setRewrittenUrl(
string $locale, $url)
Set the rewritten URL for the given locale
Details
at line 34
abstract
getRewrittenUrlViewName()
at line 41
getUrl(
string $locale = null)
Get the object URL for the given locale, rewritten if rewriting is enabled.
at line 55
generateRewrittenUrl(
string $locale)
Generate a rewritten URL from the object title, and store it in the rewriting table
at line 110
null
getRewrittenUrl(
string $locale)
return the rewritten URL for the given locale
at line 132
markRewrittenUrlObsolete()
Mark the current URL as obseolete
at line 151
$this
setRewrittenUrl(
string $locale, $url)
Set the rewritten URL for the given locale