PopulateInterface.php in Prepopulate 8.2
Namespace
Drupal\prepopulateFile
src/PopulateInterface.phpView source
<?php
namespace Drupal\prepopulate;
/**
* Provides a service to populate a form.
*/
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);
}
Interfaces
Name | Description |
---|---|
PopulateInterface | Provides a service to populate a form. |