Core/MetaNameSchema.php
public function resolveMeta(Meta $meta, Content $content, ContentType $contentType = null)
    {
        if ($contentType === null) {
            $contentType = $this->repository->getContentTypeService()->loadContentType(
                $content->contentInfo->contentTypeId
            );
        }

        $resolveMultilingue = $this->resolve(
            $meta->getContent(),
            $contentType,
            $content->fields,
            $content->versionInfo->languageCodes
        );
        // we don't fallback on the other languages... it would be very bad for SEO to mix the languages
        if ((array_key_exists($this->languages[0], $resolveMultilingue)) &&
            ($resolveMultilingue[$this->languages[0]] != '')
        ) {
            $meta->setContent($resolveMultilingue[$this->languages[0]]);

            return true;
        }
        $meta->setContent("");

        return false;
    }
public function resolveMeta(Meta $meta, Content $content, ContentType $contentType = null)
    {
        if ($contentType === null) {
            $contentType = $this->repository->getContentTypeService()->loadContentType(
                $content->contentInfo->contentTypeId
            );
        }

        $resolveMultilingue = $this->resolve(
            $meta->getContent(),
            $contentType,
            $content->fields,
            $content->versionInfo->languageCodes
        );
        // we don't fallback on the other languages... it would be very bad for SEO to mix the languages
        if ((array_key_exists($this->languages[0], $resolveMultilingue)) &&
            ($resolveMultilingue[$this->languages[0]] != '')
        ) {
            $meta->setContent($resolveMultilingue[$this->languages[0]]);

            return true;
        }
        $meta->setContent("");

        return false;
    }
public function resolveMeta ( Meta $ meta , Content $ content , ContentType $ contentType = null ) { if ( $ contentType === null ) { $ contentType = $ this -> repository -> getContentTypeService ( ) -> loadContentType ( $ content -> contentInfo -> contentTypeId ) ; } $ resolveMultilingue = $ this -> resolve ( $ meta -> getContent ( ) , $ contentType , $ content -> fields , $ content -> versionInfo -> languageCodes ) ; // we don't fallback on the other languages... it would be very bad for SEO to mix the languages if ( ( array_key_exists ( $ this -> languages [ 0 ] , $ resolveMultilingue ) ) && ( $ resolveMultilingue [ $ this -> languages [ 0 ] ] != '' ) ) { $ meta -> setContent ( $ resolveMultilingue [ $ this -> languages [ 0 ] ] ) ; return true ; } $ meta -> setContent ( "" ) ; return false ; }
Resolve a Meta Value

@param Meta        $meta
@param Content     $content
@param ContentType $contentType

@return boolean
Resolve a Meta Value