Function getRelationType

  • Returns the relation type with the reverse indicator added if necessary.

    A reversed relation means the relation is considered from the object entity point of view. The reverse indicator is a prefix added as a convention in CubicWeb.

    Parameters

    • relationType: string

      The relation type to transform

    • role: EntityRole

      The entity role in the relation

    Returns string

    A relation type with the reverse indicator if necessary

Generated using TypeDoc