public function render(array $notifications, $type = 'info')
    {
        // Ensure Type is Supported
        if (in_array($type, $this->supportedTypes) === false) {
            // If not, fall back to default
            $type = 'info';
        }

        // If there aren't any notifications, then return an empty string
        if (empty($notifications) === true) {
            return '';
        }

        $html = $this->createHtmlByType($notifications, $type);
        return $html;
    }
public function render(array $notifications, $type = 'info')
    {
        // Ensure Type is Supported
        if (in_array($type, $this->supportedTypes) === false) {
            // If not, fall back to default
            $type = 'info';
        }

        // If there aren't any notifications, then return an empty string
        if (empty($notifications) === true) {
            return '';
        }

        $html = $this->createHtmlByType($notifications, $type);
        return $html;
    }
public function render ( array $ notifications , $ type = 'info' ) { // Ensure Type is Supported if ( in_array ( $ type , $ this -> supportedTypes ) === false ) { // If not, fall back to default $ type = 'info' ; } // If there aren't any notifications, then return an empty string if ( empty ( $ notifications ) === true ) { return '' ; } $ html = $ this -> createHtmlByType ( $ notifications , $ type ) ; return $ html ; }
Renders all messages as part of the notification stack, beneath the defined identifier, as HTML

@param array $notifications
@param string $type
@return string|void
Renders all messages as part of the notification stack beneath the defined identifier as HTML