ButtonInterface extends ComponentInterface
Interface for buttons in the document header.
All button types (LinkButton, InputButton, DropDownButton, etc.) must implement this interface to be added to the ButtonBar.
This interface extends ComponentInterface, which provides the common contract for all renderable backend components.
Table of Contents
Methods
- getType() : string
- Returns the fully qualified class name as the component type identifier.
- isValid() : bool
- Validates whether the component is properly configured and can be rendered.
- render() : string
- Renders the component as an HTML string.
Methods
getType()
Returns the fully qualified class name as the component type identifier.
    public
                    getType() : string
    This is used to identify the specific component type in validation and rendering.
Return values
string —The fully qualified class name (e.g., 'TYPO3\CMS\Backend\Template\Components\Buttons\LinkButton')
isValid()
Validates whether the component is properly configured and can be rendered.
    public
                    isValid() : bool
    Each implementing class defines its own validation rules (e.g., required fields).
Return values
bool —True if the component is valid and can be rendered, false otherwise
render()
Renders the component as an HTML string.
    public
                    render() : string
    This method should only be called after validating the component with isValid(). The returned HTML is ready to be output to the browser.
Return values
string —The rendered HTML markup