public static bool WasTriggeredByTargetAttribute(this IPluginExecutionContext context, string attributeName) { var target = context.LoadInput <Entity>("Target", false); return(target != null && target.Attributes.Contains(attributeName)); }