public function purl_processor::rewrite in Persistent URL 7
Same name and namespace in other branches
- 6 includes/purl_processor.inc \purl_processor::rewrite()
Responsible for rewriting outgoing links. Note: it's this functions job to make sure it doesn't alter a link that has already been treated.
This must also check $options['purl']['disabled'] and $options['purl']['remove']. The _purl_skip() method is helpful for this.
Parameters
$path: string, by-reference the path to modify.
$options: See url() docs
$element: The element to add to the path.
6 methods override purl_processor::rewrite()
- purl_domain::rewrite in includes/
purl_domain.inc - Responsible for rewriting outgoing links. Note: it's this functions job to make sure it doesn't alter a link that has already been treated.
- purl_extension::rewrite in includes/
purl_extension.inc - Because of the expected usage of the files extensions we don't provide a rewrite.
- purl_path::rewrite in includes/
purl_path.inc - Just need to add the value to the front of the path.
- purl_querystring::rewrite in includes/
purl_querystring.inc - Just need to add the value to the front of the path.
- purl_subdomain::rewrite in includes/
purl_subdomain.inc - Responsible for rewriting outgoing links. Note: it's this functions job to make sure it doesn't alter a link that has already been treated.
File
- includes/
purl_processor.inc, line 73
Class
- purl_processor
- Processors can inspect and manipulate various parts of a request's URI.
Code
public function rewrite(&$path, &$options, $element);