class EmbedResource extends EmbedResource (View source)

deprecated 1.2.0 Use SilverStripe\View\Embed\EmbedContainer instead

Properties

protected Adapter $embed

Embed result

from  EmbedResource
protected string $url from  EmbedResource
protected array $options from  EmbedResource
protected DispatcherInterface $dispatcher from  EmbedResource

Methods

public
__construct(string $url)

No description

public
int
getWidth()

Get width of this Embed

public
int
getHeight()

Get height of this Embed

public
string
getPreviewURL()

Get preview url

public
string
getName()

Get human readable name for this resource

public
string
getType()

Get Embed type

public
bool
validate()

Validate this resource

public
$this
setOptions(array $options)

No description

public
array
getOptions()

No description

public
$this
setDispatcher(DispatcherInterface $dispatcher)

No description

public
DispatcherInterface
getDispatcher()

No description

public
Adapter
getEmbed()

Returns a bootstrapped Embed object

Details

__construct(string $url)

No description

Parameters

string $url

int getWidth()

Get width of this Embed

Return Value

int

int getHeight()

Get height of this Embed

Return Value

int

string getPreviewURL()

Get preview url

Return Value

string

string getName()

Get human readable name for this resource

Return Value

string

string getType()

Get Embed type

Return Value

string

bool validate()

Validate this resource

Return Value

bool

$this setOptions(array $options)

No description

Parameters

array $options

Return Value

$this

array getOptions()

No description

Return Value

array

$this setDispatcher(DispatcherInterface $dispatcher)

No description

Parameters

DispatcherInterface $dispatcher

Return Value

$this

DispatcherInterface getDispatcher()

No description

Return Value

DispatcherInterface

Adapter getEmbed()

Returns a bootstrapped Embed object

Return Value

Adapter