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
$branchLimitinteger, null โ€“ Branch limit

$branchLimit

Type
integer, null

Branch limit

View source

Signature

public integer, null $branchLimit = null

Public Methods

defaultSelectionLabel()

Signature

public static void defaultSelectionLabel ( )

displayName()

Signature

public static void displayName ( )

getInputHtml()

View source

Arguments

  • $value
  • $element

Signature

public void getInputHtml ( $value, craft\base\ElementInterface $element = null )

init()

Signature

public void init ( )

normalizeValue()

View source

Arguments

  • $value
  • $element

Signature

public void normalizeValue ( $value, craft\base\ElementInterface $element = null )

Protected Methods

elementType()

Signature

protected static void elementType ( )

inputTemplateVariables()

View source

Arguments

  • $value
  • $element

Signature

protected void inputTemplateVariables ( $value = null, craft\base\ElementInterface $element = null )