# useEntities

Gets the information from the entities.json based on the given expectedEntity. expectedEntity can be either a Ref or the string. Can be in all types of cases, but camelCase is preferred.

# entities.json

The four scenarios:

{
  "customers": "fa-user-card", // Scenario 1
  "users": {
    // Scenario 2
    "icon": "fa-user-card"
  },
  "tower-types": {
    // Scenario 3
    "url": "/all-tower-types"
  }
  // Scenario 4: not specified
}

Scenarios:

  • Scenario 1: In this case the url for customers will be /customers and the icon will be fa-user-card.
  • Scenario 2: In this case the url for users will be /users and the icon will be fa-user-card.
  • Scenario 3: In this case the url for tower-types will be /all-tower-types and the icon will be fa-list.
  • Scenario 4: In this case the url for conductors (not specified at all) will be /conductors and the icon will be fa-list.