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.
Methods
No description
Get width of this Embed
Get height of this Embed
Get preview url
Get human readable name for this resource
Get Embed type
Validate this resource
No description
No description
No description
No description
Returns a bootstrapped Embed object
Details
__construct(string $url)
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)
array
getOptions()
$this
setDispatcher(DispatcherInterface $dispatcher)
DispatcherInterface
getDispatcher()
Adapter
getEmbed()
Returns a bootstrapped Embed object