| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) { |
||
| 26 | $element = parent::formElement($items, $delta, $element, $form, $form_state); |
||
| 27 | |||
| 28 | $target_ids = array_keys($this->getOptions($items->getEntity())); |
||
| 29 | $targets = $this->entityTypeManager->getStorage($this->targetEntityType)->loadMultiple($target_ids); |
||
| 30 | |||
| 31 | $view_builder = $this->entityTypeManager->getViewBuilder($this->targetEntityType); |
||
| 32 | |||
| 33 | foreach ($targets as $target) { |
||
| 34 | $gen_view = $view_builder->view($target, $this->getSetting('display_mode'), $target->language()->getId()); |
||
| 35 | $element['#options'][$target->id()] = render($gen_view); |
||
| 36 | } |
||
| 37 | |||
| 38 | return $element; |
||
| 39 | } |
||
| 42 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths