protected function PageProcessor::processTagBase in Mini site 8
Process <base> tag.
Throws
\Drupal\minisite\Exception\PageProcessorException If 'head' element is missing.
1 call to PageProcessor::processTagBase()
- PageProcessor::process in src/
PageProcessor.php - Process document.
File
- src/
PageProcessor.php, line 97
Class
- PageProcessor
- Class PageProcessor.
Namespace
Drupal\minisiteCode
protected function processTagBase() {
$base_tag = $this->document
->getElementsByTagName('base')
->item(0);
if ($base_tag) {
// Remove the tag as all paths are resolved against the root of the parent
// alias.
$this->document
->removeChild($base_tag);
}
}