Convert FieldHelper::control() to use named parameters

XMLWordPrintable

      We should take advantage of named parameters so we don’t have to worry about order when passing parameters to functions anymore. This also allows us to lift most parameters up to the top level for simplicity and better self-documenting in function calls. This will allow us to avoid passing in arrays of settings that are somewhat harder to document.

      Begin with FieldHelper::control() which needs a large number of settings passed to it.

      • Convert the fieldSupplement array: take beforeField and afterField and just pass them in directly.
      • Remove the config[] param - and use named parameters instead: refactor all the config params that exist (approximately three)

            Assignee:
            Arlen Johnson
            Reporter:
            Arlen Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: