| Conditions | 5 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | |||
| 35 | $fields->insertAfter( |
||
| 36 | DropdownField::create('Products__ID', 'Product', CatalogProduct::get()->map()) |
||
| 37 | ->setEmptyString('All products'), |
||
| 38 | 'CategoryID' |
||
| 39 | ); |
||
| 40 | |||
| 41 | $fields->removeByName([ |
||
| 42 | 'Name', |
||
| 43 | 'Title', |
||
| 44 | ]); |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param $collection |
||
| 49 | * @param $searchCriteria |
||
| 50 | */ |
||
| 51 | public function updateCollectionItems(&$collection, &$searchCriteria) |
||
| 52 | { |
||
| 53 | $class = $this->owner->data()->ManagedClass; |
||
| 70 | } |