Skip to content
PHP Ecosystem
Explore

QueueCardRenderer

API reference › Debug Core › Panel › Queue › QueueCardRenderer

final classPHPForge\Debug\Panel\Queue\QueueCardRenderer
Sourcesrc/Panel/Queue/QueueCardRenderer.php

Renders the typed Queue panel detail view.

MethodDescriptionDefined by
renderAsyncHint() staticRenders the async-driver hint banner shown above the cards when at least one record was emitted by a driver that runs jobs out of process.QueueCardRenderer
renderItem() staticRenders a single job event as an <article class="yii-debug-queue-card"> ready to drop into the detail view.QueueCardRenderer
public static function renderAsyncHint(PHPForge\Debug\Panel\Queue\QueueSummary $summary): UIAwesome\Html\Flow\Div|null

Renders the async-driver hint banner shown above the cards when at least one record was emitted by a driver that runs jobs out of process.

Returns null when every record came from a sync driver, so the caller can omit the banner entirely.

Parameters

ParameterTypeDescription
$summaryQueueSummary

Returns

UIAwesome\Html\Flow\Div|null

public static function renderItem(PHPForge\Debug\Panel\Queue\JobRecord $record): UIAwesome\Html\Sectioning\Article

Renders a single job event as an <article class="yii-debug-queue-card"> ready to drop into the detail view.

Parameters

ParameterTypeDescription
$recordJobRecordTyped queue event record.

Returns

UIAwesome\Html\Sectioning\Article