You are here

public function CreateTemplateForm::getContentTypes in GatherContent 8.5

Ajax callback for mapping multistep form.

Parameters

array $form:

\Drupal\Core\Form\FormStateInterface $form_state:

Return value

array Array of form elements.

File

gathercontent_upload_ui/src/Form/CreateTemplateForm.php, line 215

Class

CreateTemplateForm

Namespace

Drupal\gathercontent_upload_ui\Form

Code

public function getContentTypes(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setRebuild(TRUE);
  return $form['gathercontent']['content_type'];
}