public function resolveUrlAliasSchema(Content $content, ContentType $contentType = null)
    {
        if ($contentType === null) {
            $contentType = $this->contentTypeHandler->load($content->contentInfo->contentTypeId);
        }

        return $this->resolve(
            strlen($contentType->urlAliasSchema) === 0 ? $contentType->nameSchema : $contentType->urlAliasSchema,
            $contentType,
            $content->fields,
            $content->versionInfo->languageCodes
        );
    }
public function resolveUrlAliasSchema(Content $content, ContentType $contentType = null)
    {
        if ($contentType === null) {
            $contentType = $this->contentTypeHandler->load($content->contentInfo->contentTypeId);
        }

        return $this->resolve(
            strlen($contentType->urlAliasSchema) === 0 ? $contentType->nameSchema : $contentType->urlAliasSchema,
            $contentType,
            $content->fields,
            $content->versionInfo->languageCodes
        );
    }
public function resolveUrlAliasSchema ( Content $ content , ContentType $ contentType = null ) { if ( $ contentType === null ) { $ contentType = $ this -> contentTypeHandler -> load ( $ content -> contentInfo -> contentTypeId ) ; } return $ this -> resolve ( strlen ( $ contentType -> urlAliasSchema ) === 0 ? $ contentType -> nameSchema : $ contentType -> urlAliasSchema , $ contentType , $ content -> fields , $ content -> versionInfo -> languageCodes ) ; }
Convenience method for resolving URL alias schema.

@param \eZ\Publish\API\Repository\Values\Content\Content $content
@param \eZ\Publish\API\Repository\Values\ContentType\ContentType|null $contentType

@return array
Convenience method for resolving URL alias schema .