function commerce_line_item_handler_field_edit_delete::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_delete.inc, line 15 - Field handler to present a button to remove a line item. It's a dummy handler, most part of the implementation is done via pre and post render hooks.
Class
- commerce_line_item_handler_field_edit_delete
- Field handler to present a button to delete a line item.
Code
function construct() {
parent::construct();
$this->additional_fields['line_item_id'] = 'line_item_id';
// Set real_field in order to make it generate a field_alias.
$this->real_field = 'line_item_id';
}