/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/ButtonWidget.php (2777B)
_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']]; } }