You are here

public static function ChannelForm::buildAjaxLanguageSelect 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::buildAjaxLanguageSelect()
  2. 8.2 modules/entity_share_server/src/Form/ChannelForm.php \Drupal\entity_share_server\Form\ChannelForm::buildAjaxLanguageSelect()

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 199

Class

ChannelForm
Class ChannelForm.

Namespace

Drupal\entity_share_server\Form

Code

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

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