You are here

protected function D7Webform::getItemsArray in Webform: Migrate 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/migrate/source/d7/D7Webform.php \Drupal\webform_migrate\Plugin\migrate\source\d7\D7Webform::getItemsArray()
1 call to D7Webform::getItemsArray()
D7Webform::buildFormElements in src/Plugin/migrate/source/d7/D7Webform.php
Build form elements from webform component table.

File

src/Plugin/migrate/source/d7/D7Webform.php, line 968

Class

D7Webform
Drupal 7 webform source from database.

Namespace

Drupal\webform_migrate\Plugin\migrate\source\d7

Code

protected function getItemsArray($rawString) {
  $items = explode("\n", $rawString);
  $items = array_map('trim', $items);
  return array_map(function ($item) {
    return explode('|', $item);
  }, $items);
}