You are here

public static function ChannelForm::buildAjaxBundleSelect in Entity Share 8

Same name and namespace in other branches
  1. 8.3 modules/entity_share_server/src/Form/ChannelForm.php \Drupal\entity_share_server\Form\ChannelForm::buildAjaxBundleSelect()
  2. 8.2 modules/entity_share_server/src/Form/ChannelForm.php \Drupal\entity_share_server\Form\ChannelForm::buildAjaxBundleSelect()

Ajax callback.

Parameters

array $form: The form array.

\Drupal\Core\Form\FormStateInterface $form_state: The form state object.

Return value

array Subform.

File

modules/entity_share_server/src/Form/ChannelForm.php, line 183

Class

ChannelForm
Class ChannelForm.

Namespace

Drupal\entity_share_server\Form

Code

public static function buildAjaxBundleSelect(array $form, FormStateInterface $form_state) {

  // We just need to return the relevant part of the form here.
  return $form['bundle_wrapper'];
}