Craft Themes (3.x)

Iframe extends FileDisplayer
in package

Renders a file as iframe

Table of Contents

$handle  : string
$_displayer  : FieldDisplayerInterface
$_options  : FileDisplayerOptions
beforeRender()  : bool
Callback before rendering, returning false will skip the file rendering
eagerLoad()  : array<string|int, mixed>
fields()  : mixed
getCanBeCached()  : bool
getDescription()  : string
getDisplayer()  : FieldDisplayerInterface
Displayer getter
getField()  : FieldInterface
getHandle()  : string
getHasOptions()  : bool
getKindTargets()  : array<string|int, mixed>
getName()  : string
getOptions()  : Model
Get options
getTheme()  : ThemeInterface
Get theme associated to this displayer
isDefault()  : bool
Is this displayer the default for an asset kind
setDisplayer()  : mixed
Displayer setter
getOptionsModel()  : string
Get options model class

Properties

$handle

public static string $handle = 'iframe'

Methods

beforeRender()

Callback before rendering, returning false will skip the file rendering

public beforeRender(Asset $asset) : bool
Parameters
$asset : Asset
Tags
inheritDoc
Return values
bool

eagerLoad()

public eagerLoad(array<string|int, mixed> $eagerLoad[, string $prefix = '' ], int $level) : array<string|int, mixed>
Parameters
$eagerLoad : array<string|int, mixed>
$prefix : string = ''
$level : int
Tags
inheritDoc
Return values
array<string|int, mixed>

fields()

public fields() : mixed
Tags
inheritDoc
Return values
mixed

getCanBeCached()

public getCanBeCached() : bool
Tags
inheritDoc
Return values
bool

getDescription()

public getDescription() : string
Tags
inheritDoc
Return values
string

getHandle()

public static getHandle() : string
Tags
inheritDoc
Return values
string

getHasOptions()

public getHasOptions() : bool
Tags
inheritDoc
Return values
bool

getKindTargets()

public static getKindTargets() : array<string|int, mixed>
Tags
inheritDoc
Return values
array<string|int, mixed>

getName()

public getName() : string
Tags
inheritDoc
Return values
string

getOptions()

Get options

public getOptions() : Model
Tags
inheritDoc
Return values
Model

getTheme()

Get theme associated to this displayer

public getTheme() : ThemeInterface
Return values
ThemeInterface

isDefault()

Is this displayer the default for an asset kind

public static isDefault(string $kind) : bool
Parameters
$kind : string
Tags
inheritDoc
Return values
bool

getOptionsModel()

Get options model class

protected getOptionsModel() : string
Tags
inheritDoc
Return values
string

Search results