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

Breadcrumb

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

function RdKafkaCaster::castPartitionMetadata

File

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

Class

RdKafkaCaster
Casts RdKafka related classes to array representation.

Namespace

Symfony\Component\VarDumper\Caster

Code

public static function castPartitionMetadata(PartitionMetadata $c, array $a, Stub $stub, bool $isNested) : array {
    $prefix = Caster::PREFIX_VIRTUAL;
    $a += [
        $prefix . 'id' => $c->getId(),
        $prefix . 'err' => $c->getErr(),
        $prefix . 'leader' => $c->getLeader(),
    ];
    return $a;
}

API Navigation

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