Skip to content

Commit

Permalink
FIX Add HasOneRelationFieldInterface to LinkField
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jan 30, 2024
1 parent 790c561 commit 3c6a037
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Form/LinkField.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
use SilverStripe\LinkField\Models\Link;
use SilverStripe\LinkField\Form\Traits\AllowedLinkClassesTrait;
use SilverStripe\LinkField\Form\Traits\LinkFieldGetOwnerTrait;
use SilverStripe\Forms\HasOneRelationFieldInterface;

/**
* Allows CMS users to edit a Link object.
*/
class LinkField extends FormField
class LinkField extends FormField implements HasOneRelationFieldInterface
{
use AllowedLinkClassesTrait;
use LinkFieldGetOwnerTrait;
Expand Down

0 comments on commit 3c6a037

Please sign in to comment.