ClassesBigCommerceFormsMessages

Messages

Handles rendering of messages (success or error) above forms or within form submissions.

  • Full name: \BigCommerce\Forms\Messages

Methods

render_messages_above_content

Renders messages above the content.

public render_messages_above_content(string $content): string

This method filters whether to show the error/success messages above the content of the form.

Parameters:

ParameterTypeDescription
$contentstringThe original content.

Return Value:

The content with messages prepended.


render_messages

Renders the error or success messages for the form submission.

public render_messages(): string

This method checks for stored error or success messages and renders them if available.

Return Value:

The rendered error or success messages.



Automatically generated on 2025-01-21