Problem/Motivation
This snippet from ApiController:
public function saveInstanceAsPreset(Request $request, string $builder_id, string $instance_id): HtmlResponse {
$label = $this->t('New preset');
foreach ($request->headers as $key => $value) {
if ($key === 'hx-prompt' && !empty($value[0])) {
$label = $value[0];
break;
}
}
...
looks like a custom way of doing:
public function saveInstanceAsPreset(Request $request, string $builder_id, string $instance_id): HtmlResponse {
$label = $request->headers->get('hx-prompt', $this->t('New preset'));
...
Proposed resolution
Try the solution with https://github.com/symfony/symfony/blob/7.3/src/Symfony/Component/HttpFo...
Issue fork display_builder-3540730
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
pdureau commentedComment #4
pdureau commentedWaiting for pipeline execution
Comment #5
pdureau commentedThe leftover related to Presets is the consequence of:
Comment #6
pdureau commentedComment #9
mogtofu33 commented