YouTubeRenderer implements FileRendererInterface
YouTube renderer class
Table of Contents
Interfaces
- FileRendererInterface
- Class FileRendererInterface
Properties
Methods
- canRender() : bool
- Check if given File(Reference) can be rendered
- getPriority() : int
- Returns the priority of the renderer This way it is possible to define/overrule a renderer for a specific file type/context.
- render() : string
- Render for given File(Reference) html output
- collectIframeAttributes() : array<string|int, mixed>
- collectOptions() : array<string|int, mixed>
- createYouTubeUrl() : string
- getOnlineMediaHelper() : false|OnlineMediaHelperInterface
- Get online media helper
- getVideoIdFromFile() : string
- implodeAttributes() : string
Properties
$onlineMediaHelper
        protected
            OnlineMediaHelperInterface|false
    $onlineMediaHelper
    
    
    
    
    
    
Methods
canRender()
Check if given File(Reference) can be rendered
    public
                    canRender(FileInterface $file) : bool
    Parameters
- $file : FileInterface
- 
                    File of FileReference to render 
Return values
boolgetPriority()
Returns the priority of the renderer This way it is possible to define/overrule a renderer for a specific file type/context.
    public
                    getPriority() : int
    For example create a video renderer for a certain storage/driver type. Should be between 1 and 100, 100 is more important than 1
Return values
intrender()
Render for given File(Reference) html output
    public
                    render(FileInterface $file, int|string $width, int|string $height[, array<string|int, mixed> $options = [] ][, bool $usedPathsRelativeToCurrentScript = false ]) : string
    Parameters
- $file : FileInterface
- $width : int|string
- 
                    TYPO3 known format; examples: 220, 200m or 200c 
- $height : int|string
- 
                    TYPO3 known format; examples: 220, 200m or 200c 
- $options : array<string|int, mixed> = []
- $usedPathsRelativeToCurrentScript : bool = false
- 
                    See $file->getPublicUrl() 
Return values
stringcollectIframeAttributes()
    protected
                    collectIframeAttributes(int|string $width, int|string $height, array<string|int, mixed> $options) : array<string|int, mixed>
    Parameters
- $width : int|string
- $height : int|string
- $options : array<string|int, mixed>
Return values
array<string|int, mixed> —pairs of key/value; not yet html-escaped
collectOptions()
    protected
                    collectOptions(array<string|int, mixed> $options, FileInterface $file) : array<string|int, mixed>
    Parameters
- $options : array<string|int, mixed>
- $file : FileInterface
Return values
array<string|int, mixed>createYouTubeUrl()
    protected
                    createYouTubeUrl(array<string|int, mixed> $options, FileInterface $file) : string
    Parameters
- $options : array<string|int, mixed>
- $file : FileInterface
Return values
stringgetOnlineMediaHelper()
Get online media helper
    protected
                    getOnlineMediaHelper(FileInterface $file) : false|OnlineMediaHelperInterface
    Parameters
- $file : FileInterface
Return values
false|OnlineMediaHelperInterfacegetVideoIdFromFile()
    protected
                    getVideoIdFromFile(FileInterface $file) : string
    Parameters
- $file : FileInterface
Return values
stringimplodeAttributes()
    protected
                    implodeAttributes(array<string|int, mixed> $attributes) : string
    Parameters
- $attributes : array<string|int, mixed>