Collection

Included in the PerformBaseBundle.

Options

crud_name

The crud name to use for the related entity

This option is required.

Allowed types: string

Defaults:

  • List context: No default
  • View context: No default
  • Create context: No default
  • Edit context: No default

itemLabel

The word to use when referring to one or many of the entities. Defaults to ‘item’ or ‘items’. Use a string and the plural word will be guessed, or an array of two strings to define the plural word explicitly.

This option is optional.

Allowed types: string, array

Defaults:

  • List context: No default
  • View context: No default
  • Create context: No default
  • Edit context: No default

label

The label to use for form labels and table headings. If no label is provided, a sensible label will be created automatically.

This option is optional.

Allowed types: string

Defaults:

  • List context: No default
  • View context: No default
  • Create context: No default
  • Edit context: No default

sortField

This option is optional.

Allowed types: boolean, string

Defaults:

  • List context: false
  • View context: false
  • Create context: false
  • Edit context: false