Neos\Flow\Mvc\Routing\IdentityRoutePart::getObjectIdentifierFromPathSegment PHP Метод

getObjectIdentifierFromPathSegment() защищенный Метод

If no UriPattern is set, the $pathSegment is expected to be the (URL-encoded) identifier otherwise a matching ObjectPathMapping fetched from persistence If no matching ObjectPathMapping was found or the given $pathSegment is no valid identifier NULL is returned.
protected getObjectIdentifierFromPathSegment ( string $pathSegment ) : string | integer
$pathSegment string the query path segment to convert
Результат string | integer the technical identifier of the object or NULL if it couldn't be found
    protected function getObjectIdentifierFromPathSegment($pathSegment)
    {
        if ($this->getUriPattern() === '') {
            $identifier = rawurldecode($pathSegment);
            $object = $this->persistenceManager->getObjectByIdentifier($identifier, $this->objectType);
            if ($object !== null) {
                return $identifier;
            }
        } else {
            $objectPathMapping = $this->objectPathMappingRepository->findOneByObjectTypeUriPatternAndPathSegment($this->objectType, $this->getUriPattern(), $pathSegment, !$this->lowerCase);
            if ($objectPathMapping !== null) {
                return $objectPathMapping->getIdentifier();
            }
        }
        return null;
    }