You are here

public function EntityFieldExport::multiple_options_form in REST Views 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/views/field/EntityFieldExport.php \Drupal\rest_views\Plugin\views\field\EntityFieldExport::multiple_options_form()

Provide options for multiple value fields.

Overrides EntityField::multiple_options_form

File

src/Plugin/views/field/EntityFieldExport.php, line 66

Class

EntityFieldExport
Display entity field data in a serialized display.

Namespace

Drupal\rest_views\Plugin\views\field

Code

public function multiple_options_form(&$form, FormStateInterface $form_state) {

  // Initialize removed settings to avoid notices. Unset them afterward.
  $this->options['multi_type'] = $this->options['separator'] = NULL;
  parent::multiple_options_form($form, $form_state);

  // The export field does not concatenate items.
  unset($form['multi_type'], $form['separator'], $this->options['multi_type'], $this->options['separator']);
}