You are here

public function PopulateInterface::populateForm in Prepopulate 8.2

Populate form with values.

Parameters

array &$form: The form or form element to populate.

null|array|string $request_slice: (optional) The values to populate.

Return value

array The populated form.

1 method overrides PopulateInterface::populateForm()
Populate::populateForm in src/Populate.php
Populate form with values.

File

src/PopulateInterface.php, line 21

Class

PopulateInterface
Provides a service to populate a form.

Namespace

Drupal\prepopulate

Code

public function populateForm(array &$form, $request_slice = NULL);