The naming is more in line with the PHP API and makes it clear that this is not the label group’s id.
{foreach from=$labelPickers item=labelPicker}
<dl>
- <dt><label for="{$labelPicker->getId()}">{$labelPicker->labelGroup->getTitle()}</label></dt>
+ <dt><label for="{$labelPicker->getElementID()}">{$labelPicker->labelGroup->getTitle()}</label></dt>
<dd>
{@$labelPicker->toHtml()}
{if $errorField == 'label' && $errorType[$labelPicker->labelGroup->groupID]|isset}
></woltlab-core-label-picker>
EOT,
$this->selected,
- $this->getId(),
+ $this->getElementID(),
$this->labelGroup->getTitle(),
StringUtil::encodeHTML(JSON::encode($labels)),
$this->labelGroup->groupID,
);
}
- public function getId(): string
+ public function getElementID(): string
{
return "labelGroup{$this->labelGroup->groupID}";
}