Krucas\Notification\NotificationsBag::getName PHP Method

getName() public method

Returns assigned container name.
public getName ( ) : string
return string
    public function getName()
    {
        return $this->container;
    }

Usage Example

Esempio n. 1
0
 /**
  * Execute this event to flash messages.
  *
  * @param Notification $notification
  * @param NotificationsBag $notificationBag
  * @param Message $message
  * @return bool
  */
 public function onFlash(Notification $notification, NotificationsBag $notificationBag, Message $message)
 {
     $this->flashContainerNames($notification);
     $sessionKey = $this->getConfig()->get('notification.session_prefix');
     $sessionKey .= $notificationBag->getName();
     $sessionKey .= '_' . $this->generateMessageKey($message);
     $this->getSession()->flash($sessionKey, $message->toJson());
     return true;
 }
All Usage Examples Of Krucas\Notification\NotificationsBag::getName