function prepopulate_after_build in Prepopulate 8.2
Same name and namespace in other branches
- 5 prepopulate.module \prepopulate_after_build()
- 6.2 prepopulate.module \prepopulate_after_build()
- 7.2 prepopulate.module \prepopulate_after_build()
An #after_build function to set the values prepopulated in the request.
1 string reference to 'prepopulate_after_build'
- prepopulate_form_alter in ./
prepopulate.module - Implements hook_form_alter().
File
- ./
prepopulate.module, line 27 - Fill form elements with data from GET or POST values.
Code
function prepopulate_after_build($form) {
/** @var \Drupal\prepopulate\Populate $populate */
$populate = \Drupal::service('prepopulate.populator');
$populate
->populateForm($form);
return $form;
}