function crop_media_type_form_builder in Crop API 8.2
Same name and namespace in other branches
- 8 crop.module \crop_media_type_form_builder()
Entity builder for Media type.
Adds third party settings to Media type config entity.
See also
crop_form_media_type_edit_form_alter()
1 string reference to 'crop_media_type_form_builder'
- crop_form_media_type_edit_form_alter in ./
crop.module - Implements hook_form_FORM_ID_alter().
File
- ./
crop.module, line 141 - The Crop API Drupal module.
Code
function crop_media_type_form_builder($entity_type, MediaTypeInterface $bundle, array &$form, FormStateInterface $form_state) {
$bundle
->setThirdPartySetting('crop', 'image_field', $form_state
->getValue('image_field'));
}