php8.5
Home/ Manual/ controls / button/ UI\Controls\Button::setText

UI\Controls\Button::setText

PHP function Edit on GitHub ✎

(UI 0.9.9)

Set Text

Description

UI\Controls\Button::setText(string $text)

Shall set the text (label) for this Button

Parameters

text

The new text (label)

Source: reference/ui/ui/controls/button/settext.xml · from the official PHP manual (php/doc-en)