form.rb 554 B

123456789101112131415161718
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. class FormSchema::Form
  3. include Mixin::RequiredSubPaths
  4. # Context from GraphQL or possibly other environments.
  5. # It must respond to :current_user and :current_user? for session information (see Gql::Context::CurrentUserAware).
  6. # It may respond to :schema with an object providing :id_for_object to perform ID mappings like in Gql::ZammadSchema.
  7. attr_reader :context
  8. def initialize(context:)
  9. @context = context
  10. end
  11. def self.forms
  12. descendants
  13. end
  14. end