Class DarkFeatureFunction

  • All Implemented Interfaces:,,<Boolean>

    public class DarkFeatureFunction
    extends Object
    Soy function to check whether a specific dark feature is enabled.

    NOTE: To be used carefully - it's usually best to isolate a dark feature in a plugin, and only deliver web resources based on the dark feature condition.

    • Constructor Detail

      • DarkFeatureFunction

        public DarkFeatureFunction()
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface
      • apply

        public Boolean apply​(Object... args)
        Specified by:
        apply in interface<Boolean>
      • validArgSizes

        public Set<Integer> validArgSizes()
        Specified by:
        validArgSizes in interface
      • generate

        public generate​( args)
        Specified by:
        generate in interface