function _uc_attribute_display_types in Ubercart 8.4
Same name and namespace in other branches
- 5 uc_attribute/uc_attribute.module \_uc_attribute_display_types()
- 6.2 uc_attribute/uc_attribute.module \_uc_attribute_display_types()
- 7.3 uc_attribute/uc_attribute.module \_uc_attribute_display_types()
Returns an array of display types used as options when creating attributes.
Return value
array Array of display types used as options when creating attributes.
4 calls to _uc_attribute_display_types()
- AttributeController::overview in uc_attribute/
src/ Controller/ AttributeController.php - Displays a paged list and overview of existing product attributes.
- AttributeFormBase::buildForm in uc_attribute/
src/ Form/ AttributeFormBase.php - Form constructor.
- AttributeTest::testAttributeUiAddAttribute in uc_attribute/
tests/ src/ Functional/ AttributeTest.php - Tests the "add attribute" user interface.
- ObjectAttributesFormBase::buildBaseForm in uc_attribute/
src/ Form/ ObjectAttributesFormBase.php - Constructs Attributes Form array on behalf of subclasses.
File
- uc_attribute/
uc_attribute.module, line 1355 - Ubercart Attribute module.
Code
function _uc_attribute_display_types() {
return [
0 => t('Text field'),
1 => t('Select box'),
2 => t('Radio buttons'),
3 => t('Checkboxes'),
];
}