internal bool IsEmpty() { return((!TemplateIds?.Any() ?? true) && (!Children?.Any() ?? true)); }
public void Process(object sender, EventArgs args) { var publishArgs = args as ItemProcessingEventArgs; if (publishArgs == null) { return; } var item = publishArgs.Context.PublishHelper.GetSourceItem(publishArgs.Context.ItemId); if (item == null || (IgnoreStandardValues && item.Name.IsStandardValues()) || (TemplateIds.Any() && !TemplateIds.Contains(item.TemplateID))) { return; } ProcessPublish(item, publishArgs); }