You are here

PopulateInterface.php in Prepopulate 8.2

Namespace

Drupal\prepopulate

File

src/PopulateInterface.php
View 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

Namesort descending Description
PopulateInterface Provides a service to populate a form.