eZ\Publish\Core\Repository\Helper\NameSchemaService::tokenParts PHP Method

tokenParts() protected method

The normal case here is that the different identifiers within one token will be tokenized and returned. Example: "<title|text>" ==> array( 'title', 'text' )
protected tokenParts ( string $token ) : array
$token string
return array
    protected function tokenParts($token)
    {
        return preg_split('#\\W#', $token, -1, PREG_SPLIT_NO_EMPTY);
    }