| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 77 | public function getInputHtml($value, ElementInterface $element = null): string |
||
| 78 | { |
||
| 79 | /** @var Element $element */ |
||
| 80 | return Craft::$app->getView()->renderTemplate( |
||
| 81 | 'hubspot/_components/fieldtypes/' . static::FIELD_TYPE . '/input', |
||
| 82 | [ |
||
| 83 | 'name' => $this->handle, |
||
| 84 | 'value' => $value, |
||
| 85 | 'field' => $this, |
||
| 86 | 'hasErrors' => $element->hasErrors($this->handle) |
||
| 87 | ] |
||
| 88 | ); |
||
| 89 | } |
||
| 90 | } |
||
| 91 |