You are here

public function Form::insertField in Cheeseburger Menu 8

File

src/workForm/Form.php, line 15
Contains \Drupal\cheeseburger_menu\workForm.

Class

Form

Namespace

Drupal\cheeseburger_menu\workForm

Code

public function insertField($form, $field, $data) {
  $form[$field] = $data;
  $this->{$form} = $form;
  return $form;
}