You are here

interface EditableOrderPanePluginInterface in Ubercart 8.4

Defines an interface for editable order pane plugins.

Hierarchy

Expanded class hierarchy of EditableOrderPanePluginInterface

All classes that implement EditableOrderPanePluginInterface

File

uc_order/src/EditableOrderPanePluginInterface.php, line 10

Namespace

Drupal\uc_order
View source
interface EditableOrderPanePluginInterface {

  /**
   * Form constructor.
   *
   * @param \Drupal\uc_order\OrderInterface $order
   *   The order that is being viewed.
   * @param array $form
   *   An array containing the structure of the form.
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   The current state of the form.
   *
   * @return array
   *   The form structure.
   */
  public function buildForm(OrderInterface $order, array $form, FormStateInterface $form_state);

  /**
   * Form submission handler.
   *
   * @param \Drupal\uc_order\OrderInterface $order
   *   The order that is being viewed.
   * @param array $form
   *   An associative array containing the structure of the form.
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   The current state of the form.
   */
  public function submitForm(OrderInterface $order, array &$form, FormStateInterface $form_state);

}

Members

Namesort descending Modifiers Type Description Overrides
EditableOrderPanePluginInterface::buildForm public function Form constructor. 7
EditableOrderPanePluginInterface::submitForm public function Form submission handler. 7