You are here

interface PopulateInterface in Prepopulate 8.2

Provides a service to populate a form.

Hierarchy

Expanded class hierarchy of PopulateInterface

All classes that implement PopulateInterface

File

src/PopulateInterface.php, line 8

Namespace

Drupal\prepopulate
View 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

Namesort descending Modifiers Type Description Overrides
PopulateInterface::populateForm public function Populate form with values. 1