You are here

public static function MessageTemplateForm::addMoreAjax in Message 8

Ajax callback for the "Add another item" button.

This returns the new page content to replace the page content made obsolete by the form submission.

File

src/Form/MessageTemplateForm.php, line 166

Class

MessageTemplateForm
Form controller for node type forms.

Namespace

Drupal\message\Form

Code

public static function addMoreAjax(array $form, FormStateInterface $form_state) {
  return $form['text'];
}