Created
July 14, 2015 10:55
-
-
Save a-ast/e7e059eccfae8f04edf0 to your computer and use it in GitHub Desktop.
eZ Publish: How to generate url alias form location or location id
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $router = $this->container->get('router'); | |
| $url = $router->generate( | |
| $targetLocation, | |
| array( | |
| 'siteaccess' => ... | |
| ), // it is possible to pass another siteaccess here | |
| UrlGeneratorInterface::ABSOLUTE_URL | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment