Function __global->make_previewable_url_absolute
Definitions
sources/form_templates.php
- Make a preview URL absolute and return if it is an image.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $url | ?URLPATH | No | No | required parameter | N/A | N/A | URL (null: none) (blank: none) |
Returns
- A pair: Modified URL, whether it is an image
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Make a preview URL absolute and return if it is an image.
*
* @param ?URLPATH $url URL (null: none) (blank: none)
* @return array A pair: Modified URL, whether it is an image
*/
function make_previewable_url_absolute(?string $url) : array
* Make a preview URL absolute and return if it is an image.
*
* @param ?URLPATH $url URL (null: none) (blank: none)
* @return array A pair: Modified URL, whether it is an image
*/
function make_previewable_url_absolute(?string $url) : array

