You are here

public function Debugger::writeSeparator in Acquia Purge 8

Write out a separator line to Drupal's debug output.

Parameters

string $separator: The separation character to use.

Throws

\LogicException Thrown when the debugger isn't enabled.

Overrides DebuggerInterface::writeSeparator

2 calls to Debugger::writeSeparator()
Debugger::writeTable in src/Plugin/Purge/Purger/Debugger.php
Write tabular data rendered as table to Drupal's debug output.
Debugger::writeTitle in src/Plugin/Purge/Purger/Debugger.php
Write a header title.

File

src/Plugin/Purge/Purger/Debugger.php, line 246

Class

Debugger
Provides a centralized debugger for Acquia purger plugins.

Namespace

Drupal\acquia_purge\Plugin\Purge\Purger

Code

public function writeSeparator($separator = '-') {
  if (!$this->enabled) {
    throw new \LogicException("Cannot call ::writeSeparator().");
  }
  $depth = $this
    ->indentationDepth();
  $this
    ->write(str_repeat($separator, self::OUTPUT_BUFLEN - $depth));
}