protected function UnitsUnitUIController::isFactorBased in Units of Measurement 7
Determine whether the currently administered measure is based on factors.
Return value
bool Whether the currently administered measure is based on factors
2 calls to UnitsUnitUIController::isFactorBased()
- UnitsUnitUIController::overviewTableHeaders in includes/
UnitsUnitUIController.class.inc - Generates the table headers for the overview table.
- UnitsUnitUIController::overviewTableRow in includes/
UnitsUnitUIController.class.inc - Generates the row for the passed entity and may be overridden in order to customize the rows.
File
- includes/
UnitsUnitUIController.class.inc, line 118 - Definition of UnitsUnitUIController class.
Class
- UnitsUnitUIController
- Admin UI controller class for entity type 'units_unit'.
Code
protected function isFactorBased() {
return $this
->getBundleEntity()->converter == 'linear';
}