src/aria/pageEngine/PageEngine.js
function (placeholderPath) {
            var outputContent;
            var typeUtil = ariaUtilsType;
            var pageConfig = this._pageConfigs[this.currentPageId];
            if (pageConfig) {
                var placeholders = pageConfig.pageComposition.placeholders;
                var content = placeholders[placeholderPath] || [];
                outputContent = [];
                var plainContent;
                if (!typeUtil.isArray(content)) {
                    content = [content];
                }

                for (var i = 0, ii = content.length; i < ii; i++) {
                    var item = content[i];
                    if (typeUtil.isObject(item)) {
                        if (this._lazyContent && item.lazy) {
                            outputContent.push({
                                loading : true,
                                width : item.lazy.width || null,
                                height : item.lazy.height || null,
                                color : item.lazy.color || null,
                                innerHTML : item.lazy.innerHTML || null
                            });
                        } else {
                            if (item.template) {
                                outputContent.push(this._getTemplateCfg(item, pageConfig));
                            } else if (item.contentId) {
                                plainContent = this._getPlaceholderContents(pageConfig, item.contentId);
                                outputContent = outputContent.concat(plainContent);
                            }
                        }
                    } else {
                        outputContent.push(item);
                    }
                }
            }
            return outputContent;
        }
function (placeholderPath) {
            var outputContent;
            var typeUtil = ariaUtilsType;
            var pageConfig = this._pageConfigs[this.currentPageId];
            if (pageConfig) {
                var placeholders = pageConfig.pageComposition.placeholders;
                var content = placeholders[placeholderPath] || [];
                outputContent = [];
                var plainContent;
                if (!typeUtil.isArray(content)) {
                    content = [content];
                }

                for (var i = 0, ii = content.length; i < ii; i++) {
                    var item = content[i];
                    if (typeUtil.isObject(item)) {
                        if (this._lazyContent && item.lazy) {
                            outputContent.push({
                                loading : true,
                                width : item.lazy.width || null,
                                height : item.lazy.height || null,
                                color : item.lazy.color || null,
                                innerHTML : item.lazy.innerHTML || null
                            });
                        } else {
                            if (item.template) {
                                outputContent.push(this._getTemplateCfg(item, pageConfig));
                            } else if (item.contentId) {
                                plainContent = this._getPlaceholderContents(pageConfig, item.contentId);
                                outputContent = outputContent.concat(plainContent);
                            }
                        }
                    } else {
                        outputContent.push(item);
                    }
                }
            }
            return outputContent;
        }
function ( placeholderPath ) { var outputContent ; var typeUtil = ariaUtilsType ; var pageConfig = this . _pageConfigs [ this . currentPageId ] ; if ( pageConfig ) { var placeholders = pageConfig . pageComposition . placeholders ; var content = placeholders [ placeholderPath ] || [ ] ; outputContent = [ ] ; var plainContent ; if ( ! typeUtil . isArray ( content ) ) { content = [ content ] ; } for ( var i = 0 , ii = content . length ; i < ii ; i ++ ) { var item = content [ i ] ; if ( typeUtil . isObject ( item ) ) { if ( this . _lazyContent && item . lazy ) { outputContent . push ( { loading : true , width : item . lazy . width || null , height : item . lazy . height || null , color : item . lazy . color || null , innerHTML : item . lazy . innerHTML || null } ) ; } else { if ( item . template ) { outputContent . push ( this . _getTemplateCfg ( item , pageConfig ) ) ; } else if ( item . contentId ) { plainContent = this . _getPlaceholderContents ( pageConfig , item . contentId ) ; outputContent = outputContent . concat ( plainContent ) ; } } } else { outputContent . push ( item ) ; } } } return outputContent ; }
Main content provider method
@param {String} placeholderPath path of the placeholder
@return {Array} List of content descriptions accepted by placeholders
Main content provider method