Beta version

abstract class NodeNameChecker

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

at line 49
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

at line 68
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