function commerce_line_item_handler_field_edit_quantity::construct in Commerce Core 7
Construct a new field handler.
Overrides views_handler_field::construct
File
- modules/
line_item/ includes/ views/ handlers/ commerce_line_item_handler_field_edit_quantity.inc, line 15 - Field handler to present a form field to change quantity of a line item. It's a dummy handler, most part of the implementation is done via post render hook.
Class
- commerce_line_item_handler_field_edit_quantity
- Field handler to present a field to change quantity of a line item.
Code
function construct() {
parent::construct();
$this->additional_fields['line_item_id'] = 'line_item_id';
$this->additional_fields['quantity'] = 'quantity';
// Set real_field in order to make it generate a field_alias.
$this->real_field = 'quantity';
}