private function findNonExistingContentTypeGroupIdentifier()
    {
        $i = 0;
        while ($i++ < 20) {
            $identifier = 'ctg' . rand(10000, 99999);
            if (!$this->checkContentTypeGroupExistenceByIdentifier($identifier)) {
                return $identifier;
            }
        }

        throw new \Exception('Possible endless loop when attempting to find a new identifier to ContentTypeGroups');
    }
private function findNonExistingContentTypeGroupIdentifier()
    {
        $i = 0;
        while ($i++ < 20) {
            $identifier = 'ctg' . rand(10000, 99999);
            if (!$this->checkContentTypeGroupExistenceByIdentifier($identifier)) {
                return $identifier;
            }
        }

        throw new \Exception('Possible endless loop when attempting to find a new identifier to ContentTypeGroups');
    }
private function findNonExistingContentTypeGroupIdentifier ( ) { $ i = 0 ; while ( $ i ++ < 20 ) { $ identifier = 'ctg' . rand ( 10000 , 99999 ) ; if ( ! $ this -> checkContentTypeGroupExistenceByIdentifier ( $ identifier ) ) { return $ identifier ; } } throw new \ Exception ( 'Possible endless loop when attempting to find a new identifier to ContentTypeGroups' ) ; }
Find a non existing ContentTypeGroup identifier

@return string A not used identifier

@throws \Exception Possible endless loop
Find a non existing ContentTypeGroup identifier