You are here

private function crumbs_Admin_DebugTable::addCandidateCell in Crumbs, the Breadcrumbs suite 7.2

Parameters

string $candidate:

string $type:

int $i: Key

string $bestCandidateKey:

1 call to crumbs_Admin_DebugTable::addCandidateCell()
crumbs_Admin_DebugTable::addCandidateCells in lib/Admin/DebugTable.php

File

lib/Admin/DebugTable.php, line 243

Class

crumbs_Admin_DebugTable

Code

private function addCandidateCell($candidate, $type, $i, $candidateKey, $bestCandidateKey) {
  $cellContent = check_plain($candidate);
  if ('parent' === $type) {
    $cellContent = '<code>' . $cellContent . '</code>';
  }
  if ($candidateKey === $bestCandidateKey) {
    $cellContent = '<strong>' . $cellContent . '</strong>';
  }
  $this->table
    ->td($candidateKey !== NULL ? "row.{$candidateKey}" : 'default', "item.{$i}.{$type}", $cellContent);
}