On November 11, 2020 . By CodimTh Category: Web Drupal Programmatic list of Webform elements $elements = $webform->getElementsDecodedAndFlattened(); This gives a nice array of the elements in the webform itself. If you want the results of a submission, grab that entity and use: $data = $entity->getData(); I hope this helps Tags : Drupal Tutorial Drupal Tips Drupal Previous PostHow do I import an SQL file using the command line in MySQLNext PostCreate Drupal8 Node Programmatically that contains two media fields Comments Add new comment Your name Subject Comment About text formats Restricted HTML Leave this field blank
Comments