Categories

Type
Class
Namespace
craft\fields
Inherits
craft\fields\Categories ยป craft\fields\BaseRelationField
Since
3.0

Categories represents a Categories field.

View source

Public Properties

PropertyDescription
allowLimit
allowMultipleSources
branchLimitinteger, null โ€“ Branch limit

allowLimit

Type

:

View source

allowMultipleSources

Type

:

View source

branchLimit

Type
integer, null

Branch limit

View source

Protected Properties

inputJsClass

Type

:

View source

inputTemplate

Type

:

View source

settingsTemplate

Type

:

View source

sortable

Type

:

View source

Public Methods

defaultSelectionLabel()

View source

displayName()

View source

getInputHtml()

View source

Arguments

  • $value
  • $element

normalizeValue()

View source

Arguments

  • $value
  • $element

valueType()

View source

Protected Methods

elementType()

View source

inputTemplateVariables()

View source

Arguments

  • $value
  • $element