public function UnitsUnitUIController::__construct in Units of Measurement 7.2
Same name and namespace in other branches
- 7 includes/UnitsUnitUIController.class.inc \UnitsUnitUIController::__construct()
Overrides EntityDefaultUIController::__construct
File
- includes/
UnitsUnitUIController.class.inc, line 13 - Definition of UnitsUnitUIController class.
Class
- UnitsUnitUIController
- Admin UI controller class for entity type 'units_unit'.
Code
public function __construct($entity_type, $entity_info) {
// We have to override %units_measure_machine_name placeholder in
// $this->path with real bundle.
parent::__construct($entity_type, $entity_info);
$this->path = str_replace('%units_measure_machine_name', $this
->bundleArgument(), $this->path);
}