getItemTypeViewlet()

Overview

public string function getItemTypeViewlet(
      required string itemType
    , required string context 
)

Returns the convention based viewlet name for the given item type and context

Arguments

NameTypeRequiredDescription
itemTypestringYesThe item type whose viewlet you wish to get
contextstringYesThe context in which the item will be rendered. i.e. 'input', 'adminPlaceholder', 'response', etc.