Skip to content

Commit 1ead0ae

Browse files
committed
Third-party support - pass $field to the helper methods.
1 parent 5c44705 commit 1ead0ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Field/Page/Fieldtype/FieldtypeThirdParty.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ public function __construct($thirdPartyClass, $field)
1717

1818
public function getDefaultType()
1919
{
20-
return $this->thirdPartyClass::getType();
20+
return $this->thirdPartyClass::getType($this->field);
2121
}
2222

2323
public function getInputfieldType($type = null)
2424
{
25-
return $this->thirdPartyClass::getInputType();
25+
return $this->thirdPartyClass::getInputType($this->field);
2626
}
2727

2828
public function setValue(Page $page, $value)

0 commit comments

Comments
 (0)