Documentation

TranslationNodeVisitor extends AbstractNodeVisitor
in package

FinalYes

TranslationNodeVisitor extracts translation messages.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Constants

UNDEFINED_DOMAIN  = '_undefined'

Properties

$enabled  : bool
$messages  : array<string|int, mixed>

Methods

disable()  : void
enable()  : void
enterNode()  : Node
Called before child nodes are visited.
getMessages()  : array<string|int, mixed>
getPriority()  : int
{@inheritdoc}
leaveNode()  : Node|null
Called after child nodes are visited.
doEnterNode()  : Node
Called before child nodes are visited.
doLeaveNode()  : Node|null
Called after child nodes are visited.
getConcatValueFromNode()  : string|null
getReadDomainFromArguments()  : string|null
getReadDomainFromNode()  : string|null
getReadMessageFromArguments()  : string|null
getReadMessageFromNode()  : string|null

Constants

Properties

Methods

getMessages()

public getMessages() : array<string|int, mixed>
Return values
array<string|int, mixed>

getConcatValueFromNode()

private getConcatValueFromNode(Node $node, string|null $value) : string|null
Parameters
$node : Node
$value : string|null
Return values
string|null

getReadDomainFromArguments()

private getReadDomainFromArguments(Node $arguments, int $index) : string|null
Parameters
$arguments : Node
$index : int
Return values
string|null

getReadMessageFromArguments()

private getReadMessageFromArguments(Node $arguments, int $index) : string|null
Parameters
$arguments : Node
$index : int
Return values
string|null

        
On this page

Search results