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

Breadcrumb

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

function RdKafkaCaster::castMessage

File

vendor/symfony/var-dumper/Caster/RdKafkaCaster.php, line 78

Class

RdKafkaCaster
Casts RdKafka related classes to array representation.

Namespace

Symfony\Component\VarDumper\Caster

Code

public static function castMessage(Message $c, array $a, Stub $stub, bool $isNested) : array {
    $prefix = Caster::PREFIX_VIRTUAL;
    $a += [
        $prefix . 'errstr' => $c->errstr(),
    ];
    return $a;
}

API Navigation

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