1<?php
2
3namespace dokuwiki\plugin\bureaucracy\interfaces;
4
5interface bureaucracy_handler_interface {
6
7    /**
8     * Handle the data incoming from the form.
9     *
10     * @param \helper_plugin_bureaucracy_field[] $fields the list of fields in the form
11     * @param string                             $thanks the thank you message as defined in the form
12     *                                                   or default one. Might be modified by the action
13     *                                                   before returned
14     *
15     * @return bool|string false on error, $thanks on success
16     *
17     */
18    public function handleData($fields, $thanks);
19}
20