using System.Collections.Generic;
using Orchard.Layouts.Framework.Display;

namespace Orchard.Layouts.Helpers {
    public static class ElementDisplayContextHelper {
        
        public static IDictionary<string, object> GetTokenData(this ElementDisplayContext context) {
            var data = new Dictionary<string, object>();

            if (context.Content != null)
                data["Content"] = context.Content.ContentItem;

            return data;
        }
    }
}