Skip to content

Commit

Permalink
NGSTACK-673: fix code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Feb 13, 2024
1 parent 16c71e9 commit fbf3742
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/reference/objects.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1194,16 +1194,16 @@ Return absolute URL.
| **Example in PHP** | .. code-block:: php |
| | |
| | $absoluteUrl = (string) $content->url; |
| | $absoluteUrl = $content->get(); |
| | $absoluteUrl = $content->get([ |
| | $absoluteUrl = $content->url->get(); |
| | $absoluteUrl = $content->url->get([ |
| | 'siteaccess' => 'admin', |
| | 'page' => 1, |
| | '_fragment' => 'frag' |
| | ]); |
| | |
| | $absoluteUrl = (string) $location->url; |
| | $absoluteUrl = $location->get(); |
| | $absoluteUrl = $location->get([ |
| | $absoluteUrl = $location->url->get(); |
| | $absoluteUrl = $location->url->get([ |
| | 'siteaccess' => 'admin', |
| | 'page' => 1, |
| | '_fragment' => 'frag' |
Expand Down

0 comments on commit fbf3742

Please sign in to comment.