You are here

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

Parameters

array[] $trail: Format: $[$path] = $trailItem

array[] $breadcrumbItems: Format: $[] = $breadcrumbItem

Return value

string[] Format: $[$path] = $title

1 call to crumbs_Admin_DebugTable::getTitles()
crumbs_Admin_DebugTable::setTrail in lib/Admin/DebugTable.php

File

lib/Admin/DebugTable.php, line 69

Class

crumbs_Admin_DebugTable

Code

private function getTitles($trail, $breadcrumbItems) {
  $titles = array();
  foreach ($breadcrumbItems as $item) {
    $path = $item['link_path'];
    if (isset($trail[$path]) && isset($item['title'])) {
      $titles[$path] = $item['title'];
    }
  }
  return $titles;
}