EmbedResource deprecated
class EmbedResource implements Embeddable (View source)
deprecated
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
Details
__construct(string $url)
No description
int
getWidth()
Get width of this Embed
int
getHeight()
Get height of this Embed
string
getPreviewURL()
Get preview url
string
getName()
Get human readable name for this resource
string
getType()
Get Embed type
bool
validate()
Validate this resource
$this
setOptions(array $options)
No description
array
getOptions()
No description
$this
setDispatcher(DispatcherInterface $dispatcher)
No description
DispatcherInterface
getDispatcher()
No description
Adapter
getEmbed()
Returns a bootstrapped Embed object