{# @var craft \craft\web\twig\variables\CraftVariable #} {# @var entry \craft\elements\Entry #} {# Description of what this file is for @package craft3 @author David Hellmann [david@hellmann.io] a-select ------------------------------------------------------------ #} {# -- Set Defaults -- #} {% set defaults = { cn: 'a-select', modifiers: [], customClasses: [], data: {}, js: null, info: null, array: null, object: null, label: null, firstOption: null, required: null, disabled: null, name: null, id: null, selected: null } %} {# -- Merge Default with Options -- #} {% set opt = opt is defined ? defaults|merge(opt) : defaults %} {# -- Modul -- #} {% if opt.object or opt.array %}