Last active
August 29, 2015 14:17
-
-
Save nkgokul/bac35fbde279b0d864df to your computer and use it in GitHub Desktop.
Getting Field types and its keys from content creation page in Drupal 8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
* / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment