public function IngredientItem::setChangeAjaxCallback in Recipe 8.2
Ajax callback for the unit_sets form element.
File
- modules/
ingredient/ src/ Plugin/ Field/ FieldType/ IngredientItem.php, line 161
Class
- IngredientItem
- Plugin implementation of the 'ingredient' field type.
Namespace
Drupal\ingredient\Plugin\Field\FieldTypeCode
public function setChangeAjaxCallback(array $form, FormStateInterface $form_state) {
return $form['settings']['default_unit'];
}