function crop_media_bundle_form_builder in Crop API 8
Entity builder for Media bundle.
Adds third party settings to Media bundle config entity.
See also
crop_form_media_bundle_form_alter()
1 string reference to 'crop_media_bundle_form_builder'
- _crop_media_provider_form in ./
crop.module - Helper function to avoid uneeded code duplication.
File
- ./
crop.module, line 167 - The Crop API Drupal module.
Code
function crop_media_bundle_form_builder($entity_type, MediaBundleInterface $bundle, &$form, FormStateInterface $form_state) {
$bundle
->setThirdPartySetting('crop', 'image_field', $form_state
->getValue('image_field'));
}