Function Hook_media_rendering_oembed->_fallback_render
Definitions
sources/hooks/systems/media_rendering/oembed.php
- Provide code to display what is at the URL, when we fail to render with oEmbed.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $url | mixed | No | No | required parameter | N/A | N/A | URL to render |
| $attributes | array | No | No | required parameter | N/A | N/A | Attributes (e.g. width, height, length) |
| $source_member | ?MEMBER | No | No | required parameter | N/A | N/A | Member to run as (null: current member) |
| $link_captions_title | string | No | No | Blank (empty string) | N/A | N/A | Text to show the link with |
Returns
- Rendered version
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Provide code to display what is at the URL, when we fail to render with oEmbed.
*
* @param mixed $url URL to render
* @param array $attributes Attributes (e.g. width, height, length)
* @param ?MEMBER $source_member Member to run as (null: current member)
* @param string $link_captions_title Text to show the link with
* @return Tempcode Rendered version
*/
public function _fallback_render($url, array $attributes, ?int $source_member, string $link_captions_title = '') : object
* Provide code to display what is at the URL, when we fail to render with oEmbed.
*
* @param mixed $url URL to render
* @param array $attributes Attributes (e.g. width, height, length)
* @param ?MEMBER $source_member Member to run as (null: current member)
* @param string $link_captions_title Text to show the link with
* @return Tempcode Rendered version
*/
public function _fallback_render($url, array $attributes, ?int $source_member, string $link_captions_title = '') : object

