public function UnitsUnitUIController::overviewTable in Units of Measurement 7.2
Same name and namespace in other branches
- 7 includes/UnitsUnitUIController.class.inc \UnitsUnitUIController::overviewTable()
Generates the render array for a overview table for arbitrary entities matching the given conditions.
Parameters
$conditions: An array of conditions as needed by entity_load().
Return value
array A renderable array.
Overrides EntityDefaultUIController::overviewTable
File
- includes/
UnitsUnitUIController.class.inc, line 43 - Definition of UnitsUnitUIController class.
Class
- UnitsUnitUIController
- Admin UI controller class for entity type 'units_unit'.
Code
public function overviewTable($conditions = array()) {
// For better code reusage we prefer to add a condition and pass on to
// parent's method, rather than running our own EntityFieldQuery and then
// building the overview table.
$conditions[$this->entityInfo['entity keys']['bundle']] = $this
->bundleArgument();
return parent::overviewTable($conditions);
}