You are here

public function UnitsUnitUIController::bundleArgument in Units of Measurement 7

Same name and namespace in other branches
  1. 7.2 includes/UnitsUnitUIController.class.inc \UnitsUnitUIController::bundleArgument()

Supportive function.

Extracts bundle argument from menu path.

4 calls to UnitsUnitUIController::bundleArgument()
UnitsUnitUIController::entityFormSubmitBuildEntity in includes/UnitsUnitUIController.class.inc
Entity submit builder invoked via entity_ui_form_submit_build_entity().
UnitsUnitUIController::getBundleEntity in includes/UnitsUnitUIController.class.inc
Retrieve the bundle (measure) entity whose units are being administered.
UnitsUnitUIController::overviewTable in includes/UnitsUnitUIController.class.inc
Generates the render array for a overview table for arbitrary entities matching the given conditions.
UnitsUnitUIController::__construct in includes/UnitsUnitUIController.class.inc

File

includes/UnitsUnitUIController.class.inc, line 60
Definition of UnitsUnitUIController class.

Class

UnitsUnitUIController
Admin UI controller class for entity type 'units_unit'.

Code

public function bundleArgument() {
  return arg($this
    ->bundleArgumentPosition());
}