class ExpressionBasedNodeLabelGenerator implements NodeLabelGeneratorInterface (View source)

The expression based node label generator that is used as default if a label expression is configured.

Properties

protected EelEvaluatorInterface $eelEvaluator
protected array $defaultContextConfiguration
protected string $expression

Methods

string
getExpression()

No description

setExpression(string $expression)

No description

void
initializeObject()

No description

string
getLabel(NodeInterface $node)

Render a node label based on an eel expression or return the expression if it is not valid eel.

Details

string getExpression()

No description

Return Value

string

setExpression(string $expression)

No description

Parameters

string $expression

void initializeObject()

No description

Return Value

void

string getLabel(NodeInterface $node)

Render a node label based on an eel expression or return the expression if it is not valid eel.

Parameters

NodeInterface $node

Return Value

string

Exceptions

Exception