You are here

public function DebuggerInterface::writeTable in Acquia Purge 8

Write tabular data rendered as table to Drupal's debug output.

Parameters

mixed[] $table: Associative array with each key being the row title, when the array key is an integer, the row will be fully used. Non-string data will be rendered using json_encode().

string $title: Optional title to render above the table content.

Throws

\LogicException Thrown when the debugger isn't enabled.

1 method overrides DebuggerInterface::writeTable()
Debugger::writeTable in src/Plugin/Purge/Purger/Debugger.php
Write tabular data rendered as table to Drupal's debug output.

File

src/Plugin/Purge/Purger/DebuggerInterface.php, line 132

Class

DebuggerInterface
Describes a centralized debugger for Acquia purger plugins.

Namespace

Drupal\acquia_purge\Plugin\Purge\Purger

Code

public function writeTable(array $table, $title = NULL);