Bloom.Book.Book.GetTemplatePagesIdDictionary C# (CSharp) Method

GetTemplatePagesIdDictionary() public method

public GetTemplatePagesIdDictionary ( ) : IPage>.Dictionary
return IPage>.Dictionary
        public Dictionary<string, IPage> GetTemplatePagesIdDictionary()
        {
            if (_log.ErrorEncountered)
                return null;

            var result = new Dictionary<string, IPage>();

            foreach (XmlElement pageNode in OurHtmlDom.SafeSelectNodes("//div[contains(@class,'bloom-page') and not(contains(@data-page, 'singleton'))]"))
            {
                string captionI18nId;
                var caption = GetPageLabelFromDiv(pageNode, out captionI18nId);
                result.Add(GetPageIdFromDiv(pageNode), CreatePageDecriptor(pageNode, caption, captionI18nId));
            }
            return result;
        }
Book