Source of file OrderItemGridField.php
Size: 0,670 Bytes - Last Modified: 2021-12-24T05:16:53+00:00
/var/www/docs.ssmods.com/process/src/code/forms/gridfield/OrderItemGridField.php
1234567891011121314151617181920212223242526 | <?php /** * GridField used for order items that allows a proper ReadOnly version */ class OrderItemGridField extends GridField { /** * Returns a readonly version of this field * @return GridField */ public function performReadonlyTransformation() { $this->getConfig() ->removeComponentsByType("GridFieldDeleteAction") ->removeComponentsByType("GridFieldAddExistingAutocompleter") ->removeComponentsByType("GridFieldEditableColumns") ->removeComponentsByType("GridFieldAddNewButton") ->addComponent(new GridFieldDataColumns()); return $this; } } |