You are here

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

Parameters

string $name:

string|null $title:

1 call to crumbs_Admin_DebugTable::addLegendRow()
crumbs_Admin_DebugTable::addPluginResults in lib/Admin/DebugTable.php

File

lib/Admin/DebugTable.php, line 122

Class

crumbs_Admin_DebugTable

Code

private function addLegendRow($name = 'legend', $title = NULL) {
  $this->table
    ->addRowName($name);
  if (!isset($title)) {
    $this->table
      ->th($name, 'candidate.key', t('Candidate key'))
      ->th($name, 'candidate.weight', t('Weight'));
  }
  else {
    $this->table
      ->th($name, 'candidate', $title);
  }
  foreach ($this->paths as $i => $path) {
    $this->table
      ->th($name, "item.{$i}.title", t('Title'));
    if ($i + 1 < count($this->trail)) {
      $this->table
        ->th($name, "item.{$i}.parent", t('Parent'));
    }
  }
}