You are here

public static function BatOptionsCombined::processMultiple in Booking and Availability Management Tools for Drupal 8

File

modules/bat_options/src/Plugin/Field/FieldWidget/BatOptionsCombined.php, line 220
Contains \Drupal\bat_options\Plugin\Field\FieldWidget\BatOptionsCombined.

Class

BatOptionsCombined
Plugin annotation @FieldWidget( id = "bat_options_combined", label = @Translation("Combined text field'"), field_types = { "bat_options" } )

Namespace

Drupal\bat_options\Plugin\Field\FieldWidget

Code

public static function processMultiple($element, FormStateInterface $form_state, $form) {
  $element['#prefix'] = '<div id="' . $element['#id'] . '-ajax-wrapper">';
  $element['#suffix'] = '</div>';
  return $element;
}