class EmbedResource implements Embeddable (View source)

deprecated 4.11.0 Use EmbedContainer instead

This is a deprecated class that was compatible with embed/embed v3 This has been replaced with EmbedContainer which is embed/embed v4 compatible

Encapsulation of an embed tag, linking to an external media source.

Properties

protected Adapter $embed

Embed result

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

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