protected function ClientsHandlerEntityUIController::overviewTableRow in Web Service Clients 7.3
Generates the row for the passed entity and may be overridden in order to customize the rows.
Parameters
$additional_cols: Additional columns to be added after the entity label column.
Overrides EntityDefaultUIController::overviewTableRow
3 calls to ClientsHandlerEntityUIController::overviewTableRow()
- ClientsConnectionEntityUIController::overviewTableRow in includes/
clients.ui.inc - Generates the row for the passed entity and may be overridden in order to customize the rows.
- ClientsHandlerEntityUIController::overviewTable in includes/
clients.ui.inc - Overriden to sort the handlers by machine name.
- ClientsResourceEntityUIController::overviewTableRow in includes/
clients.ui.inc - Generates the row for the passed entity and may be overridden in order to customize the rows.
2 methods override ClientsHandlerEntityUIController::overviewTableRow()
- ClientsConnectionEntityUIController::overviewTableRow in includes/
clients.ui.inc - Generates the row for the passed entity and may be overridden in order to customize the rows.
- ClientsResourceEntityUIController::overviewTableRow in includes/
clients.ui.inc - Generates the row for the passed entity and may be overridden in order to customize the rows.
File
- includes/
clients.ui.inc, line 127 - Provides a controller for building an entity overview form.
Class
- ClientsHandlerEntityUIController
- Default controller for providing handler UI.
Code
protected function overviewTableRow($conditions, $id, $entity, $additional_cols = array()) {
$handler_types_callback = $this->entityInfo['admin ui']['types callback'];
$handler_types = $handler_types_callback();
$broken_class = $this->entityInfo['factory']['broken class'];
if (get_class($entity) == $broken_class) {
// If the handler is broken, there will be no type data for it.
$type_label = $entity->type;
$type_label .= ' <span class="warning">' . t("Broken handler") . '</span>';
}
else {
$handler_type = $handler_types[$entity->type];
$type_label = $handler_type['label'];
}
// Our subclasses have almost certainly added additional columns.
// Put the handler type at the front so it comes just after the name.
array_unshift($additional_cols, $type_label);
$row = parent::overviewTableRow($conditions, $id, $entity, $additional_cols);
return $row;
}