class LegacyNormalizer extends LessNormalizer (View source)

Class LegacyNormalizer

We need this class because some legacy approaches should still be supported, but they aren't the right things to do.

  1. Image backgrounds, etc... things with URL need to include their url(...) as part of the variable. But old themes don't do this, so we we're going to sniff those variables that end with -image and force those variables to be image variables.

Properties

protected Less_Parser $parser from  LessNormalizer

Methods

__construct(Less_Parser $parser)

No description

string
normalizeVariableName(string $variableName)

No description

createVariableCollectionFromFile(string $variablesFilePath)

No description

Details

__construct(Less_Parser $parser)

No description

Parameters

Less_Parser $parser

protected string normalizeVariableName(string $variableName)

No description

Parameters

string $variableName

Return Value

string

NormalizedVariableCollection createVariableCollectionFromFile(string $variablesFilePath)

No description

Parameters

string $variablesFilePath

Return Value

NormalizedVariableCollection