Function Hook_media_rendering_oembed->_find_oembed_endpoint
Definitions
sources/hooks/systems/media_rendering/oembed.php
- Find an oEmbed endpoint for a URL.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $url | URLPATH | No | No | required parameter | N/A | N/A | URL to find the oEmbed endpoint for |
Returns
- Endpoint UR (null: none found)
- Type: ?URLPATH
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find an oEmbed endpoint for a URL.
*
* @param URLPATH $url URL to find the oEmbed endpoint for
* @return ?URLPATH Endpoint UR (null: none found)
*/
public function _find_oembed_endpoint(string $url) : ?string
* Find an oEmbed endpoint for a URL.
*
* @param URLPATH $url URL to find the oEmbed endpoint for
* @return ?URLPATH Endpoint UR (null: none found)
*/
public function _find_oembed_endpoint(string $url) : ?string

