TextCollector::collectFromTemplate
Extracts translatables from .ss templates (Self referencing)
Signature
public function collectFromTemplate(string
$content,
string
$fileName,
string
$module,
[array&
$parsedFiles = ] )
Parameters
$content
—
string
- The text content of a parsed template-file
$fileName
—
string
- The name of a template file when method is used in self-referencing mode
$module
—
string
- Module's name or 'themes'
$parsedFiles
—
array
Returns
- array
- $entities An array of entities representing the extracted template function calls
Line |
Task |
340+ |
Why the type juggling for $this->collectFromTemplate()? It always returns an array. |