diff --git a/core/Container/Container.php b/core/Container/Container.php index 26cd3760..554d1e3d 100644 --- a/core/Container/Container.php +++ b/core/Container/Container.php @@ -785,6 +785,15 @@ public function set_classes( $classes ) { return $this; } + /** + * Adds a notification to be shown. + * + * @param string $notification + */ + public function add_notification ($notification) { + $this->notifications[] = $notification; + } + /** * Returns an array that holds the container data, suitable for JSON representation. *