Skip to main content
Version: 4.4

Contenttype Form Field

The contenttype form field type provides a list of content types.

  • type (mandatory) must be contenttype.
  • name (mandatory) is the unique name of the field.
  • label (mandatory) (translatable) is the field html label.
  • description (optional) (translatable) is the field description.
  • multiple (optional) when set to true allows multiple selections.

Implemented by: libraries/src/Form/Field/ContenttypeField.php

Example XML parameter definition

<field
name="types" type="contenttype"
label="COM_TAGS_FIELD_TYPE_LABEL"
description="COM_TAGS_FIELD_TYPE_DESC"
multiple="true"
/>