FileCompilerModule::compile()

The compile method processes the contents of a file

  1. If you want to compile the entire contents of the file, override this method and don't parent::compile().
  2. If you only want to compile non-PHP sections of the file, implement the compileMarkup() method instead.

Usage

$string = $fileCompilerModule->compile(string $data);

Arguments

NameType(s)Description
$datastring

Return value

string array


FileCompilerModule methods and properties

API reference based on ProcessWire core version 3.0.251