View Source Bonfire.Label.Acts.LabelObject (Bonfire v0.9.10-classic-beta.169)

Takes an object and label and returns a changeset for labeling that object. Implements Bonfire.Epics.Act.

Epic Options:

  • :current_user - user that will create the page, required.

Act Options:

  • :as - key to where we find the label(s) to add, and then assign changeset to, default: :label.
  • :object (configurable) - id to use for the thing to label
  • :attrs - epic options key to find the attributes at, default: :attrs.