nkgokul
3/18/2015 - 9:26 PM

Getting Field types and its keys from content creation page in Drupal 8

Getting Field types and its keys from content creation page in Drupal 8

var options = ''; 
jQuery('.form-item-new-storage-type select option').each(function(){
  options = options + (jQuery(this).text() + '<<' + jQuery(this).val() + '\n');
});
console.log(options);

/**
* Copy paste the output from console.log to Google Spreadsheet 
* You can use =SPLIT(A1,"<<"); function to split the key value pairs.
* /