VimeoRenderer

class \TYPO3\CMS\Core\Resource\Rendering\VimeoRenderer

Implements
FileRendererInterface

Vimeo renderer class

Attributes

#[AsFileRenderer]

Table of Contents

Interfaces

FileRendererInterface
Interface for file renderers, which are registered as tagged services via the #[AsFileRenderer] attribute or the 'fal.file_renderer' service tag.

Properties

$onlineMediaHelper  : OnlineMediaHelperInterface|false

Methods

canRender()  : bool
Check if given File(Reference) can be rendered
render()  : string
Render for given File(Reference) html output
collectIframeAttributes()  : array
collectOptions()  : array
createVimeoUrl()  : string
getOnlineMediaHelper()  : false|OnlineMediaHelperInterface
Get online media helper
getVideoIdFromFile()  : string
implodeAttributes()  : string
shouldIncludeFrameBorderAttribute()  : bool
HTML5 deprecated the "frameborder" attribute as everything should be done via styling.

Properties

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

bool

render()

Render for given File(Reference) html output

public render(FileInterface $file, int|string $width, int|string $height[, array $options = [] ]) : 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 = []

Return values

string

collectIframeAttributes()

protected collectIframeAttributes(int|string $width, int|string $height, array $options) : array

Parameters

$width : int|string
$height : int|string
$options : array

Return values

array —

pairs of key/value; not yet html-escaped

implodeAttributes()

protected implodeAttributes(array $attributes) : string

Parameters

$attributes : array

Return values

string

shouldIncludeFrameBorderAttribute()

HTML5 deprecated the "frameborder" attribute as everything should be done via styling.

protected shouldIncludeFrameBorderAttribute() : bool

Tags

todo:

This renderer has a dependency to Request / TypoScript. Model this explicitly.

Return values

bool
On this page