public function XmlSitemapGeneratorInterface::getPathAlias in XML sitemap 8
Same name and namespace in other branches
- 2.x src/XmlSitemapGeneratorInterface.php \Drupal\xmlsitemap\XmlSitemapGeneratorInterface::getPathAlias()
Given an internal Drupal path, return the alias for the path.
This is similar to drupal_get_path_alias(), but designed to fetch all aliases at once so that only one database query is executed instead of severa or possibly thousands during sitemap generation.
Parameters
string $path: An internal Drupal path.
string $language: A language code to use when looking up the paths.
1 method overrides XmlSitemapGeneratorInterface::getPathAlias()
- XmlSitemapGenerator::getPathAlias in src/
XmlSitemapGenerator.php - Given an internal Drupal path, return the alias for the path.
File
- src/
XmlSitemapGeneratorInterface.php, line 22
Class
- XmlSitemapGeneratorInterface
- Provides an interface defining a XmlSitemapGenerator service.
Namespace
Drupal\xmlsitemapCode
public function getPathAlias($path, $language);