class NodeNameChecker (View source)

Class NodeNameChecker

Methods

static bool
isNodeNameWithUniqId(string $canonicalNodeName, string $nodeName)

Test if current node name is suffixed with a 13 chars Unique ID (uniqid()).

static bool
isNodeNameAlreadyUsed(string $nodeName, EntityManager $entityManager)

Test if node’s name is already used as a name or an url-alias.

Details

static bool isNodeNameWithUniqId(string $canonicalNodeName, string $nodeName)

Test if current node name is suffixed with a 13 chars Unique ID (uniqid()).

Parameters

string $canonicalNodeName Node name without uniqid after.
string $nodeName Node name to test

Return Value

bool

static bool isNodeNameAlreadyUsed(string $nodeName, EntityManager $entityManager)

Test if node’s name is already used as a name or an url-alias.

Parameters

string $nodeName
EntityManager $entityManager

Return Value

bool