/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/View/Widget
NameSizeModeActions
BasicWidget.php63650644editdlrm
ButtonWidget.php27770644editdlrm
CheckboxWidget.php29060644editdlrm
DateTimeWidget.php73060644editdlrm
FileWidget.php26960644editdlrm
LabelWidget.php28210644editdlrm
MultiCheckboxWidget.php96290644editdlrm
NestingLabelWidget.php9660644editdlrm
RadioWidget.php87190644editdlrm
SelectBoxWidget.php110390644editdlrm
TextareaWidget.php24120644editdlrm
WidgetInterface.php13840644editdlrm
WidgetLocator.php66830644editdlrm
YearWidget.php33140644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/View/Widget/LabelWidget.php (2821B)
_templates = $templates; } /** * Render a label widget. * * Accepts the following keys in $data: * * - `text` The text for the label. * - `input` The input that can be formatted into the label if the template allows it. * - `escape` Set to false to disable HTML escaping. * * All other attributes will be converted into HTML attributes. * * @param array $data Data array. * @param \Cake\View\Form\ContextInterface $context The current form context. * @return string */ public function render(array $data, ContextInterface $context): string { $data += [ 'text' => '', 'input' => '', 'hidden' => '', 'escape' => true, 'templateVars' => [], ]; return $this->_templates->format($this->_labelTemplate, [ 'text' => $data['escape'] ? h($data['text']) : $data['text'], 'input' => $data['input'], 'hidden' => $data['hidden'], 'templateVars' => $data['templateVars'], 'attrs' => $this->_templates->formatAttributes($data, ['text', 'input', 'hidden']), ]); } /** * @inheritDoc */ public function secureFields(array $data): array { return []; } }