1 | <?php |
||
10 | class UrlBuilder |
||
11 | { |
||
12 | /** |
||
13 | * Builds the page's url by get all page parents slugs and implode them with "/". |
||
14 | * |
||
15 | * @param WebViewInterface $view |
||
16 | * |
||
17 | * @return string $url |
||
18 | */ |
||
19 | public function buildUrl(WebViewInterface $view) |
||
37 | |||
38 | /** |
||
39 | * Get the array of slugs of the parents. |
||
40 | * |
||
41 | * @param WebViewInterface $view |
||
42 | * @param string[] $slugs |
||
43 | * |
||
44 | * @return string[] |
||
45 | */ |
||
46 | protected function getParentSlugs(WebViewInterface $view, array $slugs) |
||
62 | } |
||
63 |