protected internal virtual void ValidateNameLength(PageTypeDefinition definition) { if(definition.GetPageTypeName().Length <= MaximumPageTypeNameLength) return; string errorMessage = "The page type class {0} has a name that is longer than {1}. EPiServer does not save more than {1} characters and the name is often used to identify page types."; errorMessage = string.Format(CultureInfo.InvariantCulture, errorMessage, definition.Type.Name, MaximumPageTypeNameLength); throw new PageTypeBuilderException(errorMessage); }
protected internal virtual void UpdateName(IPageType pageType, PageTypeDefinition definition) { pageType.Name = definition.GetPageTypeName(); }