Skip to content

Commit

Permalink
Make arrayable link url method public
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Dec 6, 2023
1 parent 26d08db commit 7f46a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fieldtypes/Link/ArrayableLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function jsonSerialize()
return $this->url(); // Use a string for backwards compatibility in the REST API, etc.
}

private function url()
public function url()
{
return is_object($this->value) ? $this->value?->url() : $this->value;
}
Expand Down

0 comments on commit 7f46a8b

Please sign in to comment.