Skip to main content

AnnouncementBar

Import Flex\Theme\Announcements\AnnouncementBar. Create with make(string $id). IDs are 1–100 ASCII letters, digits, underscores or hyphens. Registered bar IDs must be unique within the panel. Calling announcementBars([...]) replaces that plugin instance’s registration list. getAnnouncementBar($id) resolves a registered bar and rejects unknown IDs. getGlobalAnnouncementBars() returns the registered global bars.

Announcement

Import Flex\Theme\Announcements\Announcement. Create with make(string $id, string $message). Message IDs follow the same format and are unique within their bar. Text must be nonblank and at most 2000 characters. Use configuration for callback safety, color behavior and dismissal semantics, and events for the complete command/event interface. Browser presentation events are not server authorization or a durable delivery/acknowledgment guarantee.