You are here

public function UrlBag::setParentAlias in Mini site 8

Set parent alias.

This sets the "prefix" part of the alias. Note that this can be empty to unset the parent part of the alias.

Parameters

string $parent_alias: Relative or absolute path.

1 call to UrlBag::setParentAlias()
UrlBag::setAlias in src/UrlBag.php
Set alias.

File

src/UrlBag.php, line 153

Class

UrlBag
Class UrlBag.

Namespace

Drupal\minisite

Code

public function setParentAlias($parent_alias) {
  $parent_alias = rtrim($parent_alias, '/');
  $this->parentAlias = static::toLocal($parent_alias, $this->baseUrl);
}