lib/Layout/Resolver/ConditionType/ContentType.php
private function getContentType(Content $content): EzContentType
    {
        if (method_exists($content, 'getContentType')) {
            return $content->getContentType();
        }

        // @deprecated Remove when support for eZ kernel < 7.4 ends

        return $this->contentTypeService->loadContentType(
            $content->contentInfo->contentTypeId
        );
    }
private function getContentType(Content $content): EzContentType
    {
        if (method_exists($content, 'getContentType')) {
            return $content->getContentType();
        }

        // @deprecated Remove when support for eZ kernel < 7.4 ends

        return $this->contentTypeService->loadContentType(
            $content->contentInfo->contentTypeId
        );
    }
private function getContentType ( Content $ content ) : EzContentType { if ( method_exists ( $ content , 'getContentType' ) ) { return $ content -> getContentType ( ) ; } // @deprecated Remove when support for eZ kernel < 7.4 ends return $ this -> contentTypeService -> loadContentType ( $ content -> contentInfo -> contentTypeId ) ; }
Loads the content type for provided content.

@deprecated Acts as a BC layer for eZ kernel <7.4
Loads the content type for provided content .