public function UrlBag::getAlias in Mini site 8
Get alias for the current URL.
Return value
string Alias, if parent alias was provided, or NULL if it was not (because we need to know if alias was explicitly set for this URI).
1 call to UrlBag::getAlias()
- UrlBag::getAliasAbsolute in src/
UrlBag.php - Get absolute alias path.
File
- src/
UrlBag.php, line 104
Class
- UrlBag
- Class UrlBag.
Namespace
Drupal\minisiteCode
public function getAlias() {
return isset($this->parentAlias) ? $this->parentAlias . '/' . $this
->getRootDir() . '/' . $this
->getPathInArchive() : NULL;
}