Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StreamHandler.php

function StreamHandler::addNotification

2 calls to StreamHandler::addNotification()
StreamHandler::add_debug in vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php
StreamHandler::add_progress in vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php

File

vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php, line 600

Class

StreamHandler
HTTP handler that uses PHP's HTTP stream wrapper.

Namespace

GuzzleHttp\Handler

Code

private static function addNotification(array &$params, callable $notify) : void {
    // Wrap the existing function if needed.
    if (!isset($params['notification'])) {
        $params['notification'] = $notify;
    }
    else {
        $params['notification'] = self::callArray([
            $params['notification'],
            $notify,
        ]);
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal