class ClientsResourceEntityUIController in Web Service Clients 7.3
UI controller class for resources.
Hierarchy
- class \EntityDefaultUIController
Expanded class hierarchy of ClientsResourceEntityUIController
1 string reference to 'ClientsResourceEntityUIController'
- clients_entity_info in ./
clients.module - Implements hook_entity_info().
File
- includes/
clients.ui.inc, line 300 - Provides a controller for building an entity overview form.
View source
class ClientsResourceEntityUIController extends ClientsHandlerEntityUIController {
/**
* Provides definitions for implementing hook_menu().
*/
public function hook_menu() {
// Tweak what our base class does..
$items = parent::hook_menu();
$items[$this->path]['title'] = t('Resources');
$items[$this->path]['type'] = MENU_LOCAL_TASK;
return $items;
}
/**
* Generates the table headers for the overview table.
*/
protected function overviewTableHeaders($conditions, $rows, $additional_header = array()) {
$additional_header['connection'] = t('Connection');
return parent::overviewTableHeaders($conditions, $rows, $additional_header);
}
/**
* Generates the row for the passed entity and may be overridden in order to
* customize the rows.
*
* @param $additional_cols
* Additional columns to be added after the entity label column.
*/
protected function overviewTableRow($conditions, $id, $entity, $additional_cols = array()) {
// Add the connection to the columns. Our parent class does the handler type.
$additional_cols['connection'] = l($entity->connection, 'admin/structure/clients/connections/manage/' . $entity->connection);
return parent::overviewTableRow($conditions, $id, $entity, $additional_cols);
}
}