protected function crumbs_Admin_WeightsTable::rowAddMethodInfo in Crumbs, the Breadcrumbs suite 7.2
Parameters
array $cells:
crumbs_Container_MultiWildcardDataOffset $meta:
1 call to crumbs_Admin_WeightsTable::rowAddMethodInfo()
- crumbs_Admin_WeightsTable::addRow in lib/
Admin/ WeightsTable.php
File
- lib/
Admin/ WeightsTable.php, line 187
Class
- crumbs_Admin_WeightsTable
- This class is a helper for theme_crumbs_weights_tabledrag()
Code
protected function rowAddMethodInfo(&$cells, $meta) {
$methods = array();
$routes = array();
if (is_array($meta->routeMethods)) {
foreach ($meta->routeMethods as $method => $method_routes) {
foreach ($method_routes as $route => $cTrue) {
$methods[] = $method . '()';
$routes[] = $route;
}
}
}
if (is_array($meta->basicMethods)) {
foreach ($meta->basicMethods as $method => $cTrue) {
$methods[] = $method . '()';
$routes[] = '-';
}
}
$cells[] = '<code>' . implode('<br/>', $methods) . '</code>';
$cells[] = '<code>' . implode('<br/>', $routes) . '</code>';
}