class InvocationProcessor extends AbstractFeatureProcessor (View source)

The snippet, Toolbox method or extension method invocation processor.

Properties

protected $Automad The main Automad instance. from AbstractFeatureProcessor
protected $ContentProcessor The content processor instance. from AbstractFeatureProcessor
protected $Runtime The Runtime instance. from AbstractFeatureProcessor

Methods

__construct(Automad $Automad, Runtime $Runtime, ContentProcessor $ContentProcessor)

The feature processor constructor.

process(array $matches, string $directory, bool $collectSnippetDefinitions)

Process invocations of Toolbox methods, snippets or extensions.

static 
syntaxPattern()

The pattern that is used to match invocations.

initTemplateProcessor()

Create a new instance of the template processor.

Details

__construct(Automad $Automad, Runtime $Runtime, ContentProcessor $ContentProcessor)

The feature processor constructor.

Parameters

Automad $Automad
Runtime $Runtime
ContentProcessor $ContentProcessor

process(array $matches, string $directory, bool $collectSnippetDefinitions)

Process invocations of Toolbox methods, snippets or extensions.

Parameters

array $matches
string $directory
bool $collectSnippetDefinitions

static syntaxPattern()

The pattern that is used to match invocations.

protected TemplateProcessor initTemplateProcessor()

Create a new instance of the template processor.

Return Value

TemplateProcessor the template processor instance