Guides

PreParseDocument
in package

FinalYes

This event is called before the parsing of each document is passed to the responsible extension.

It can be used to manipulate the content passed to the parser by calling PreParseDocument::setContents

Table of Contents

Properties

$contents  : string
$fileName  : string
$parser  : Parser

Methods

__construct()  : mixed
getContents()  : string
getFileName()  : string
getParser()  : Parser
setContents()  : void

Properties

Methods

__construct()

public __construct(Parser $parser, string $fileName, string $contents) : mixed
Parameters
$parser : Parser
$fileName : string
$contents : string

setContents()

public setContents(string $contents) : void
Parameters
$contents : string

        
On this page

Search results