Lines Matching refs:optionSpec
161 foreach ($options as $key => $optionSpec) {
174 if (is_scalar($optionSpec)) {
175 $optionSpec = array(
176 'label' => $optionSpec,
181 if (isset($optionSpec['value'])) {
182 $value = $optionSpec['value'];
184 if (isset($optionSpec['label'])) {
185 $label = $optionSpec['label'];
187 if (isset($optionSpec['selected'])) {
188 $selected = $optionSpec['selected'];
190 if (isset($optionSpec['disabled'])) {
191 $disabled = $optionSpec['disabled'];
193 if (isset($optionSpec['label_attributes'])) {
195 ? array_merge($labelAttributes, $optionSpec['label_attributes'])
196 : $optionSpec['label_attributes'];
198 if (isset($optionSpec['attributes'])) {
199 $inputAttributes = array_merge($inputAttributes, $optionSpec['attributes']);