interface PopulateInterface in Prepopulate 8.2
Provides a service to populate a form.
Hierarchy
- interface \Drupal\prepopulate\PopulateInterface
Expanded class hierarchy of PopulateInterface
All classes that implement PopulateInterface
File
- src/
PopulateInterface.php, line 8
Namespace
Drupal\prepopulateView source
interface PopulateInterface {
/**
* Populate form with values.
*
* @param array &$form
* The form or form element to populate.
* @param null|array|string $request_slice
* (optional) The values to populate.
*
* @return array
* The populated form.
*/
public function populateForm(array &$form, $request_slice = NULL);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PopulateInterface:: |
public | function | Populate form with values. | 1 |