Beta version

class UniqueNodeGenerator

Class UniqueNodeGenerator

Methods

__construct(EntityManager $entityManager)

UniqueNodeGenerator constructor.

generate(NodeType $nodeType, Translation $translation, Node $parent = null, Tag $tag = null, boolean $pushToTop = false)

Generate a node with a unique name.

generateFromRequest(Request $request)

Try to generate a unique node from request variables.

Details

at line 52
__construct(EntityManager $entityManager)

UniqueNodeGenerator constructor.

Parameters

EntityManager $entityManager

at line 68
NodesSources generate(NodeType $nodeType, Translation $translation, Node $parent = null, Tag $tag = null, boolean $pushToTop = false)

Generate a node with a unique name.

Parameters

NodeType $nodeType
Translation $translation
Node $parent
Tag $tag
boolean $pushToTop

Return Value

NodesSources

at line 116
NodesSources generateFromRequest(Request $request)

Try to generate a unique node from request variables.

Parameters

Request $request

Return Value

NodesSources