Twig
class Twig extends Plugin
Twig linter base. Loads checks and collates messages.
Methods
loadFromString(string $string, string $fileName = 'internal')
Load template from string
loadFromPath(string $path)
Load template from file path
boolean
hasMessages()
Template has lint messages
array
getMessages()
Get lint messages
Details
at line 22
Twig
loadFromFile(SplFileInfo $file)
Load template from SplFileInfo reference, usually from Finder
at line 35
Twig
loadFromString(string $string, string $fileName = 'internal')
Load template from string
at line 47
Twig
loadFromPath(string $path)
Load template from file path
at line 58
boolean
hasMessages()
Template has lint messages
at line 68
Twig
lint(boolean $ignoreWarnings = false)
Lint template
at line 95
array
getMessages()
Get lint messages