setUrlPrefix() public method

Set a prefix that will be applied to all URLs in the document except marked as href.
See also: LinkInterface
public setUrlPrefix ( string $prefix ) : void
$prefix string
return void
Example #1
0
 /**
  * @param DocumentInterface $docWriter
  */
 private function configureUrlPrefix(DocumentInterface $docWriter)
 {
     $this->encoderOptions !== null && $this->encoderOptions->getUrlPrefix() !== null ? $docWriter->setUrlPrefix($this->encoderOptions->getUrlPrefix()) : null;
 }