You are here

public static function PullForm::buildAjaxChannelSelect in Entity Share 8.3

Same name and namespace in other branches
  1. 8 modules/entity_share_client/src/Form/PullForm.php \Drupal\entity_share_client\Form\PullForm::buildAjaxChannelSelect()
  2. 8.2 modules/entity_share_client/src/Form/PullForm.php \Drupal\entity_share_client\Form\PullForm::buildAjaxChannelSelect()

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_client/src/Form/PullForm.php, line 408

Class

PullForm
Form controller to pull entities.

Namespace

Drupal\entity_share_client\Form

Code

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

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