AbstractFeatureProcessor
abstract class AbstractFeatureProcessor (View source)
The abstract feature processor class. All feature processors based on this class must implement
a process()
and a static syntaxPattern()
method.
Properties
protected | $Automad | The main Automad instance. | |
protected | $ContentProcessor | The content processor instance. | |
protected | $Runtime | The Runtime instance. |
Methods
The feature processor constructor.
The actual processor that is used to process a template substring
that matches the pattern returned by the syntaxPattern()
method.
The actual pattern that is used to trigger the processor.
Create a new instance of the template processor.
Details
at line 77
__construct(Automad $Automad, Runtime $Runtime, ContentProcessor $ContentProcessor)
The feature processor constructor.
at line 95
abstract
process(array $matches, string $directory, bool $collectSnippetDefinitions)
The actual processor that is used to process a template substring
that matches the pattern returned by the syntaxPattern()
method.
at line 100
abstract static
syntaxPattern()
The actual pattern that is used to trigger the processor.
at line 107
protected TemplateProcessor
initTemplateProcessor()
Create a new instance of the template processor.