/var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/View/Widget
NameSizeModeActions
BasicWidget.php62150644editdlrm
ButtonWidget.php27620644editdlrm
CheckboxWidget.php28740644editdlrm
DateTimeWidget.php72280644editdlrm
FileWidget.php26660644editdlrm
LabelWidget.php28060644editdlrm
MultiCheckboxWidget.php95460644editdlrm
NestingLabelWidget.php9660644editdlrm
RadioWidget.php86540644editdlrm
SelectBoxWidget.php110020644editdlrm
TextareaWidget.php23820644editdlrm
WidgetInterface.php13490644editdlrm
WidgetLocator.php66830644editdlrm
YearWidget.php32380644editdlrm
Edit: /var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/View/Widget/ButtonWidget.php (2762B)
_templates = $templates; } /** * Render a button. * * This method accepts a number of keys: * * - `text` The text of the button. Unlike all other form controls, buttons * do not escape their contents by default. * - `escapeTitle` Set to false to disable escaping of button text. * - `escape` Set to false to disable escaping of attributes. * - `type` The button type defaults to 'submit'. * * Any other keys provided in $data will be converted into HTML attributes. * * @param array $data The data to build a button with. * @param \Cake\View\Form\ContextInterface $context The current form context. * @return string */ public function render(array $data, ContextInterface $context): string { $data += [ 'text' => '', 'type' => 'submit', 'escapeTitle' => true, 'escape' => true, 'templateVars' => [], ]; return $this->_templates->format('button', [ 'text' => $data['escapeTitle'] ? h($data['text']) : $data['text'], 'templateVars' => $data['templateVars'], 'attrs' => $this->_templates->formatAttributes($data, ['text', 'escapeTitle']), ]); } /** * @inheritDoc */ public function secureFields(array $data): array { if (!isset($data['name']) || $data['name'] === '') { return []; } return [$data['name']]; } }