You are here

public function ShareMessageForm::ajaxShareMessageContentTypeSelect in Share Message 8

Ajax callback to fetch the selected content type with view builder.

Parameters

array $form: A nested array form elements comprising the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

File

src/Form/ShareMessageForm.php, line 372

Class

ShareMessageForm
Base form controller for Share Message edit forms.

Namespace

Drupal\sharemessage\Form

Code

public function ajaxShareMessageContentTypeSelect(array $form, FormStateInterface $form_state) {
  return $form['sharemessage_extra_field'];
}