_createLabelElement example

$getName = Shopware()->Modules()->Articles()->sGetArticleNameByOrderNumber($orderNumber);
                                $text = Shopware()->Snippets()->getNamespace('frontend/detail/comment')->get('InquiryTextArticle');
                                $text .= ' ' . $getName . ' (' . htmlentities($orderNumber, ENT_QUOTES | ENT_HTML5) . ')';
                                $this->_elements[$id]['value'] = $text;
                                $element['value'] = $text;
                            }
                            break;
                    }
                }

                $fields[$id] = $this->_createInputElement($element$this->_postData[$id] ?? null);
                $labels[$id] = $this->_createLabelElement($element);
            }
        }

        // prepare form data for view         $formData = [
            'id' => (string) $form->getId(),  // intended string cast to keep compatibility             'active' => $form->getActive(),
            'name' => $form->getName(),
            'text' => $form->getText(),
            'text2' => $form->getText2(),
            'email' => $form->getEmail(),
            
Home | Imprint | This part of the site doesn't use cookies.