Unable to export demo

Created on 3 June 2025, 4 days ago

Problem/Motivation

Using the dev version of sdc_styleguide, when I click 'Export demo' it appears the following error: Oops, something went wrong. Check your browser's developer console for more details.

Checking the recent logs messages, there appears this error:

Error: Call to undefined function Drupal\sdc_styleguide\Form\last() in Drupal\sdc_styleguide\Form\SDCDemoForm->onComponentExport() (line 263 of /var/www/html/web/modules/contrib/sdc_styleguide/src/Form/SDCDemoForm.php)

Proposed resolution

Instead of call last, call end function.

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇪🇸Spain omarlopesino

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024