Ash.Resource.Transformers.SetPrimaryActions (ash v1.37.2) View Source

Creates/validates the primary action configuration

If only one action of a given type is defined, it is marked as primary. If multiple exist, and one is not primary, this results in an error.

Link to this section Summary

Link to this section Functions

Callback implementation for Ash.Dsl.Transformer.after?/1.

Callback implementation for Ash.Dsl.Transformer.before?/1.

Link to this function

transform(resource, dsl_state)

View Source

Callback implementation for Ash.Dsl.Transformer.transform/2.